model_presenter 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ModelPresenter
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = ModelPresenter::VERSION
17
17
  gem.add_runtime_dependency(%q<json>)
18
- gem.add_development_dependency(%q<minitest>)
18
+ gem.add_development_dependency(%q<minitest>, "2.12.0")
19
19
  gem.add_development_dependency(%q<minitest-growl>)
20
20
  gem.add_development_dependency(%q<guard-minitest>)
21
21
  gem.add_development_dependency(%q<minitest-wscolor>)
@@ -15,12 +15,15 @@ module ModelPresenter
15
15
  end
16
16
  }
17
17
  let(:object) { Object.new }
18
+
18
19
  subject {klass.new object}
20
+
19
21
  describe ".json_properties" do
20
22
  it "generates as_json method" do
21
23
  subject.must_respond_to :as_json
22
24
  end
23
25
  end
26
+
24
27
  describe "#as_json" do
25
28
  let(:result) { subject.as_json }
26
29
  { :attr1 => "value1", :attr2 => "value2" }.each do |key, value|
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.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -32,17 +32,17 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ! '>='
35
+ - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: '0'
37
+ version: 2.12.0
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ! '>='
43
+ - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: '0'
45
+ version: 2.12.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: minitest-growl
48
48
  requirement: !ruby/object:Gem::Requirement