f-matchers 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/f-matchers/rspec_matchers.rb +1 -1
- data/lib/f-matchers/version.rb +1 -1
- data/spec/rspec_matchers_spec.rb +2 -1
- metadata +5 -5
@@ -24,7 +24,7 @@ end
|
|
24
24
|
# spec for prepend_view_path
|
25
25
|
RSpec::Matchers.define :prepend_view_path_with do |attribute|
|
26
26
|
match do |model|
|
27
|
-
model.send(:view_paths).first == attribute
|
27
|
+
model.send(:view_paths).paths.first == attribute
|
28
28
|
end
|
29
29
|
failure_message_for_should do
|
30
30
|
"#{subject} should prepend view path with #{attribute}"
|
data/lib/f-matchers/version.rb
CHANGED
data/spec/rspec_matchers_spec.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "spec_helper"
|
2
|
+
require "ostruct"
|
2
3
|
|
3
4
|
describe "rspec_f_matchers" do
|
4
5
|
|
@@ -17,7 +18,7 @@ describe "rspec_f_matchers" do
|
|
17
18
|
context "prepend_view_path_with" do
|
18
19
|
before do
|
19
20
|
@receiver = Object.new
|
20
|
-
@receiver.stub(:view_paths){ ['path_1'] }
|
21
|
+
@receiver.stub(:view_paths){ OpenStruct.new paths: ['path_1'] }
|
21
22
|
end
|
22
23
|
subject{ @receiver }
|
23
24
|
it { should prepend_view_path_with('path_1') }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: f-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70341138204120 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70341138204120
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activerecord
|
27
|
-
requirement: &
|
27
|
+
requirement: &70341138203300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70341138203300
|
36
36
|
description: Rspec matchers
|
37
37
|
email:
|
38
38
|
- acampolonghi@gmail.com
|