model_presenter 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ module ModelPresenter
|
|
5
5
|
attributes.each do |attribute|
|
6
6
|
describe "##{attribute}" do
|
7
7
|
it "returns the model.#{attribute}" do
|
8
|
+
model.stub(attribute).and_return(attribute)
|
8
9
|
result = subject.send(attribute)
|
9
10
|
if result.respond_to?(:should)
|
10
11
|
result.should eq(model.send(attribute))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: model_presenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
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: 2012-07-
|
12
|
+
date: 2012-07-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|