rspec_candy 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -3,6 +3,7 @@ rvm:
3
3
  - "1.8.7"
4
4
  - "1.9.3"
5
5
  - ree
6
+ before_script: rake travis_ci:prepare
6
7
  script: rake all:bundle all:spec
7
8
  notifications:
8
9
  email:
data/Rakefile CHANGED
@@ -5,6 +5,18 @@ require "bundler/gem_tasks"
5
5
  desc 'Default: Run all specs.'
6
6
  task :default => 'all:spec'
7
7
 
8
+ namespace :travis_ci do
9
+
10
+ desc 'Things to do before Travis CI begins'
11
+ task :prepare => :slimgems
12
+
13
+ desc 'Install slimgems'
14
+ task :slimgems do
15
+ system('gem install slimgems')
16
+ end
17
+
18
+ end
19
+
8
20
  namespace :all do
9
21
 
10
22
  desc "Run specs on all spec apps"
@@ -17,7 +17,9 @@ module RSpecCandy
17
17
 
18
18
  method_defined_directly = method_defined?(method) || private_method_defined?(method) # check that a method is not "defined" by responding to method_missing
19
19
 
20
- define_method method_called do |*args|
20
+ unless method_defined?(method_called)
21
+ define_method method_called do |*args|
22
+ end
21
23
  end
22
24
 
23
25
  if method_defined_directly
@@ -1,3 +1,3 @@
1
1
  module RSpecCandy
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
data/spec/rspec1/Gemfile CHANGED
@@ -9,6 +9,7 @@ gem 'ruby-debug', :platforms => :ruby_18
9
9
  gem 'debugger', :platforms => :ruby_19
10
10
  gem 'rspec_candy', :path => '../..'
11
11
  gem 'test-unit', '~>1.2', :platforms => :ruby_19
12
+ gem 'hoe', '=2.8.0', :platforms => :ruby_19
12
13
 
13
14
  group :state_machine do
14
15
  gem 'state_machine'
@@ -48,6 +48,14 @@ describe RSpecCandy::Helpers::ShouldReceiveAndExecute do
48
48
  object.foo.should == 'foo'
49
49
  end
50
50
 
51
+ it 'should work when setting multiple expectations on the same method' do
52
+ object = "16"
53
+ object.should_receive_and_execute(:to_i).with(10)
54
+ object.should_receive_and_execute(:to_i).with(8)
55
+ object.to_i(10).should == 16
56
+ object.to_i(8).should == 14
57
+ end
58
+
51
59
  end
52
60
 
53
61
  end
metadata CHANGED
@@ -1,61 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rspec_candy
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.9
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 8
10
- version: 0.2.8
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Henning Koch
14
9
  - Tobias Kraze
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2013-02-22 00:00:00 +01:00
13
+ date: 2013-03-18 00:00:00.000000000 +01:00
20
14
  default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: rspec
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &9227840 !ruby/object:Gem::Requirement
26
19
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
34
24
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: sneaky-save
38
25
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: *9227840
27
+ - !ruby/object:Gem::Dependency
28
+ name: sneaky-save
29
+ requirement: &9227200 !ruby/object:Gem::Requirement
40
30
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
48
35
  type: :runtime
49
- version_requirements: *id002
36
+ prerelease: false
37
+ version_requirements: *9227200
50
38
  description: RSpec helpers and matchers we use in our daily work at makandra.
51
39
  email: henning.koch@makandra.de
52
40
  executables: []
53
-
54
41
  extensions: []
55
-
56
42
  extra_rdoc_files: []
57
-
58
- files:
43
+ files:
59
44
  - .gitignore
60
45
  - .travis.yml
61
46
  - README.md
@@ -144,36 +129,26 @@ files:
144
129
  has_rdoc: true
145
130
  homepage: https://github.com/makandra/rspec_candy
146
131
  licenses: []
147
-
148
132
  post_install_message:
149
133
  rdoc_options: []
150
-
151
- require_paths:
134
+ require_paths:
152
135
  - lib
153
- required_ruby_version: !ruby/object:Gem::Requirement
136
+ required_ruby_version: !ruby/object:Gem::Requirement
154
137
  none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3
159
- segments:
160
- - 0
161
- version: "0"
162
- required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
143
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
171
148
  requirements: []
172
-
173
149
  rubyforge_project:
174
150
  rubygems_version: 1.3.9.5
175
151
  signing_key:
176
152
  specification_version: 3
177
153
  summary: RSpec helpers and matchers we use in our daily work at makandra.
178
154
  test_files: []
179
-