rspec_candy 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -11,10 +11,6 @@ module RSpecCandy
|
|
11
11
|
# Every key/value pair in the hash will become a #let variable for the reused example group
|
12
12
|
# - You can call it with a block. It will be available to the reused example group as let(:block)
|
13
13
|
def it_should_act_like(shared_example_group, environment = {}, &block)
|
14
|
-
if Switcher.rspec_version == :rspec2
|
15
|
-
warn('"it_should_act_like" is deprecated. Consider using "it_should_behave_like".')
|
16
|
-
end
|
17
|
-
|
18
14
|
description = "as #{shared_example_group}"
|
19
15
|
description << " (#{environment.inspect})" if environment.present?
|
20
16
|
describe description do
|
data/lib/rspec_candy/version.rb
CHANGED
data/spec/rspec1/Gemfile.lock
CHANGED
data/spec/rspec2/Gemfile.lock
CHANGED
@@ -119,20 +119,6 @@ describe RSpecCandy::Helpers::StubAnyInstance do
|
|
119
119
|
describe_block
|
120
120
|
end
|
121
121
|
|
122
|
-
if RSpecCandy::Switcher.rspec_version == :rspec2
|
123
|
-
it 'should print a deprecation warning' do
|
124
|
-
result = RSpecRemote.run_describe_block(<<-describe_block)
|
125
|
-
shared_examples "a lazy spec" do
|
126
|
-
end
|
127
|
-
|
128
|
-
describe 'spec' do
|
129
|
-
it_should_act_like "a lazy spec"
|
130
|
-
end
|
131
|
-
describe_block
|
132
|
-
result.should include('"it_should_act_like" is deprecated')
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
122
|
end
|
137
123
|
|
138
124
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_candy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2014-01-03 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|