grape-entity-matchers 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,13 +42,15 @@ module GrapeEntityMatchers
42
42
  message << "#{@subject} didn't expose #{@expected_representable} as expected: #{@subject.exposures[@expected_representable]}" unless verify_exposure
43
43
  message << "#{@subject} didn't call the method #{@actual_representation || @expected_representable} to get #{@expected_representable} from the test class.\n" unless check_methods
44
44
  message << "#{@subject} return the correct value for #{@expected_representable}." unless check_value
45
+ message
45
46
  end
46
-
47
+
47
48
  def negative_failure_message
48
49
  message = ""
49
- message << "Didn't expect #{@subject} to expose #{@expected_representable} correctly: #{@subject.exposures[@expected_representable]}" if verify_exposure
50
+ message << "Didn't expect #{@subject} to expose #{@expected_representable} correctly: #{@subject.exposures[@expected_representable]} \n" if verify_exposure
50
51
  message << "Didn't expect #{@subject} to call #{@actual_representation || @expected_representable} to get #{@expected_representable} from the test class.\n" if check_methods
51
- message << "Didn't expect #{@subject} to return the correct value for #{@expected_representable}." if check_value
52
+ message << "Didn't expect #{@subject} to return the correct value for #{@expected_representable}.\n" if check_value
53
+ message
52
54
  end
53
55
 
54
56
  def description
@@ -1,3 +1,3 @@
1
1
  module GrapeEntityMatchers
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -45,6 +45,7 @@ describe GrapeEntityMatchers do
45
45
 
46
46
  it { should represent(:dog).using(PetEntity) }
47
47
  it { should represent(:cat).as(:cat).using(PetEntity) }
48
+ it { should_not represent(:cat).using(PetEntity) }
48
49
 
49
50
  end
50
51
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: grape-entity-matchers
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mark Madsen
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  segments:
148
148
  - 0
149
- hash: 3869361771623991090
149
+ hash: 186511890577646696
150
150
  version: '0'
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  none: false
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  segments:
157
157
  - 0
158
- hash: 3869361771623991090
158
+ hash: 186511890577646696
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project: grape-entity-matchers