File tree Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ group :assets do
20
20
end
21
21
22
22
group :test do
23
- gem 'rspec-rails' , '~> 2.7.0 '
23
+ gem 'rspec-rails' , '~> 2.14 '
24
24
gem 'cucumber-rails' , '~> 1.2.0'
25
25
gem 'database_cleaner' , '~> 0.6.7'
26
26
gem 'accept_values_for' , '~> 0.4.3'
Original file line number Diff line number Diff line change 64
64
cucumber (>= 1.1.1 )
65
65
nokogiri (>= 1.5.0 )
66
66
database_cleaner (0.6.7 )
67
- diff-lcs (1.1.3 )
67
+ diff-lcs (1.2.4 )
68
68
erubis (2.7.0 )
69
69
execjs (1.2.9 )
70
70
multi_json (~> 1.0 )
@@ -152,19 +152,21 @@ GEM
152
152
resque_spec (0.7.0 )
153
153
resque (>= 1.15.0 )
154
154
rspec (>= 2.5.0 )
155
- rspec (2.7.0 )
156
- rspec-core (~> 2.7.0 )
157
- rspec-expectations (~> 2.7.0 )
158
- rspec-mocks (~> 2.7.0 )
159
- rspec-core (2.7.1 )
160
- rspec-expectations (2.7.0 )
161
- diff-lcs (~> 1.1.2 )
162
- rspec-mocks (2.7.0 )
163
- rspec-rails (2.7.0 )
164
- actionpack (~> 3.0 )
165
- activesupport (~> 3.0 )
166
- railties (~> 3.0 )
167
- rspec (~> 2.7.0 )
155
+ rspec (2.14.1 )
156
+ rspec-core (~> 2.14.0 )
157
+ rspec-expectations (~> 2.14.0 )
158
+ rspec-mocks (~> 2.14.0 )
159
+ rspec-core (2.14.5 )
160
+ rspec-expectations (2.14.2 )
161
+ diff-lcs (>= 1.1.3 , < 2.0 )
162
+ rspec-mocks (2.14.3 )
163
+ rspec-rails (2.14.0 )
164
+ actionpack (>= 3.0 )
165
+ activesupport (>= 3.0 )
166
+ railties (>= 3.0 )
167
+ rspec-core (~> 2.14.0 )
168
+ rspec-expectations (~> 2.14.0 )
169
+ rspec-mocks (~> 2.14.0 )
168
170
rubyzip (0.9.4 )
169
171
rufus-scheduler (2.0.12 )
170
172
tzinfo (>= 0.3.23 )
@@ -234,7 +236,7 @@ DEPENDENCIES
234
236
resque (= 1.20.0 )
235
237
resque-scheduler (= 1.9.9 )
236
238
resque_spec (~> 0.7.0 )
237
- rspec-rails (~> 2.7.0 )
239
+ rspec-rails (~> 2.14 )
238
240
sass-rails (~> 3.2.6 )
239
241
squeel (= 0.9.3 )
240
242
timecop (~> 0.3.5 )
Original file line number Diff line number Diff line change 31
31
[ "nil" , lambda { nil } ]
32
32
] . each do |text , method_block |
33
33
context "when the location's next ping date is #{ text } " do
34
- before { location . stub :next_ping_date , method_block }
34
+ before { location . stub :next_ping_date , & method_block }
35
35
it { subject . next_ping . should == 'just a moment' }
36
36
end
37
37
end
Original file line number Diff line number Diff line change 5
5
subject { described_class }
6
6
7
7
describe "paginate" do
8
- context "when there are 10 #{ subject . to_s . downcase } and 3 per page" do
8
+ context "when there are 10 #{ described_class . to_s . downcase } and 3 per page" do
9
9
before do
10
10
@items = 10 . times . map { create ( subject . to_s . downcase . to_sym ) }
11
11
@per_page = 3
18
18
[ 4 , 10 , 10 ]
19
19
] . each do |page , start_nbr , end_nbr |
20
20
context "when the page is #{ page } " do
21
- it "returns #{ subject . to_s . downcase } s #{ start_nbr } through #{ end_nbr } " do
21
+ it "returns #{ described_class . to_s . downcase } s #{ start_nbr } through #{ end_nbr } " do
22
22
subject . paginate ( page , @per_page ) . should == @items [ ( start_nbr - 1 ) ..( end_nbr - 1 ) ]
23
23
end
24
24
end
You can’t perform that action at this time.
0 commit comments