dummy_test_pattern 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,9 @@ module DummyTestPattern
12
12
  def key(name, type)
13
13
  attr_accessor name
14
14
  end
15
+
16
+ def set_collection_name=(name)
17
+ end
15
18
  end
16
19
 
17
20
  def save
@@ -1,3 +1,3 @@
1
1
  module DummyTestPattern
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/spec/dummy_spec.rb CHANGED
@@ -24,7 +24,7 @@ describe DummyTestPattern do
24
24
 
25
25
  it 'save (returns self)' do
26
26
  p = Post.new
27
- p.save.should == p
27
+ p.save.should == true
28
28
  end
29
29
 
30
30
  it 'database='do
@@ -32,5 +32,11 @@ describe DummyTestPattern do
32
32
  MongoMapper.database = 'hello'
33
33
  end.should_not raise_error
34
34
  end
35
+
36
+ it 'set_collection_name=' do
37
+ lambda do
38
+ Post.set_collection_name = 'hello'
39
+ end.should_not raise_error
40
+ end
35
41
  end
36
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dummy_test_pattern
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-29 00:00:00.000000000 Z
12
+ date: 2012-01-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Dummy testing pattern helper gem.
15
15
  email: