rspec-varys 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/generating_specs.feature +12 -10
- data/lib/rspec/varys/version.rb +1 -1
- data/lib/rspec/varys.rb +2 -2
- data/spec/rspec/varys_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9b5d6746ad0ced69ace33d7f785783a1a9289c3
|
4
|
+
data.tar.gz: e5579d289843714febeddd99b882d95f79c94779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b25c426e5f447bb33d3d2216c0b593d0d1be37ab1be19223217b706a4a54a1d8dd796e779fea428c487a34443086e2da95178ae78e1d6613ea1dfb60ab99ddc
|
7
|
+
data.tar.gz: e485f28b72288b5ecf2212e1c3f7bcfd115a32918838f6a8a1e9ac93ed6ae4046a3cd0c7a07b9de7ed15cfc9b22e2d53b96f9b9e99645a4fbb9a28e727b58c3d
|
@@ -64,9 +64,9 @@ Feature: Generating an RSpec Spec from an RSpec Expectation
|
|
64
64
|
describe "#full_name" do
|
65
65
|
|
66
66
|
it "returns the correct value" do
|
67
|
+
pending
|
67
68
|
confirm(subject).can receive(:full_name).and_return("Dick Jones")
|
68
|
-
|
69
|
-
expect(instance.full_name).to eq("Dick Jones")
|
69
|
+
expect(subject.full_name).to eq("Dick Jones")
|
70
70
|
end
|
71
71
|
|
72
72
|
end
|
@@ -118,9 +118,9 @@ Feature: Generating an RSpec Spec from an RSpec Expectation
|
|
118
118
|
describe "#title" do
|
119
119
|
|
120
120
|
it "returns the correct value" do
|
121
|
+
pending
|
121
122
|
confirm(subject).can receive(:title).and_return("Vice President")
|
122
|
-
|
123
|
-
expect(instance.title).to eq("Vice President")
|
123
|
+
expect(subject.title).to eq("Vice President")
|
124
124
|
end
|
125
125
|
|
126
126
|
end
|
@@ -128,9 +128,9 @@ Feature: Generating an RSpec Spec from an RSpec Expectation
|
|
128
128
|
describe "#full_name" do
|
129
129
|
|
130
130
|
it "returns the correct value" do
|
131
|
+
pending
|
131
132
|
confirm(subject).can receive(:full_name).and_return("Dick Jones")
|
132
|
-
|
133
|
-
expect(instance.full_name).to eq("Dick Jones")
|
133
|
+
expect(subject.full_name).to eq("Dick Jones")
|
134
134
|
end
|
135
135
|
|
136
136
|
end
|
@@ -162,6 +162,7 @@ Feature: Generating an RSpec Spec from an RSpec Expectation
|
|
162
162
|
describe "#full_name" do
|
163
163
|
|
164
164
|
it "returns the correct value" do
|
165
|
+
pending
|
165
166
|
confirm(subject).can receive(:full_name).and_return("Dick Jones")
|
166
167
|
# ...
|
167
168
|
end
|
@@ -197,9 +198,9 @@ Feature: Generating an RSpec Spec from an RSpec Expectation
|
|
197
198
|
describe "#title" do
|
198
199
|
|
199
200
|
it "returns the correct value" do
|
201
|
+
pending
|
200
202
|
confirm(subject).can receive(:title).and_return("Vice President")
|
201
|
-
|
202
|
-
expect(instance.title).to eq("Vice President")
|
203
|
+
expect(subject.title).to eq("Vice President")
|
203
204
|
end
|
204
205
|
|
205
206
|
end
|
@@ -220,6 +221,7 @@ Feature: Generating an RSpec Spec from an RSpec Expectation
|
|
220
221
|
describe "#full_name" do
|
221
222
|
|
222
223
|
it "returns the correct value" do
|
224
|
+
pending
|
223
225
|
confirm(subject).can receive(:full_name).and_return("Dick Jones")
|
224
226
|
expect(subject).to receive(:join_names).with("Dick", "Jones").and_return("Dick Jones")
|
225
227
|
subject.full_name
|
@@ -262,9 +264,9 @@ Feature: Generating an RSpec Spec from an RSpec Expectation
|
|
262
264
|
describe "#join_names" do
|
263
265
|
|
264
266
|
it "returns the correct value" do
|
267
|
+
pending
|
265
268
|
confirm(subject).can receive(:join_names).with("Dick", "Jones").and_return("Dick Jones")
|
266
|
-
|
267
|
-
expect(instance.join_names("Dick", "Jones")).to eq("Dick Jones")
|
269
|
+
expect(subject.join_names("Dick", "Jones")).to eq("Dick Jones")
|
268
270
|
end
|
269
271
|
|
270
272
|
end
|
data/lib/rspec/varys/version.rb
CHANGED
data/lib/rspec/varys.rb
CHANGED
@@ -102,9 +102,9 @@ module RSpec::Varys
|
|
102
102
|
describe "##{s[:message]}" do
|
103
103
|
|
104
104
|
it "returns the correct value" do
|
105
|
+
pending
|
105
106
|
confirm(subject).can receive(:#{s[:message]})#{with_parameters(s)}.and_return(#{serialize s[:return_value]})
|
106
|
-
|
107
|
-
expect(instance.#{s[:message]}#{parameters(s)}).to eq(#{serialize s[:return_value]})
|
107
|
+
expect(subject.#{s[:message]}#{parameters(s)}).to eq(#{serialize s[:return_value]})
|
108
108
|
end
|
109
109
|
|
110
110
|
end
|
data/spec/rspec/varys_spec.rb
CHANGED
@@ -76,9 +76,9 @@ describe RSpec::Varys do
|
|
76
76
|
describe "#full_name" do
|
77
77
|
|
78
78
|
it "returns the correct value" do
|
79
|
+
pending
|
79
80
|
confirm(subject).can receive(:full_name).and_return("Dick Jones")
|
80
|
-
|
81
|
-
expect(instance.full_name).to eq("Dick Jones")
|
81
|
+
expect(subject.full_name).to eq("Dick Jones")
|
82
82
|
end
|
83
83
|
|
84
84
|
end
|
@@ -123,9 +123,9 @@ GENERATED
|
|
123
123
|
describe "#join_names" do
|
124
124
|
|
125
125
|
it "returns the correct value" do
|
126
|
+
pending
|
126
127
|
confirm(subject).can receive(:join_names).with("Dick", "Jones").and_return("Dick Jones")
|
127
|
-
|
128
|
-
expect(instance.join_names("Dick", "Jones")).to eq("Dick Jones")
|
128
|
+
expect(subject.join_names("Dick", "Jones")).to eq("Dick Jones")
|
129
129
|
end
|
130
130
|
|
131
131
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-varys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ritchie Young
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|