Skip to content

Commit

Permalink
RSpec modernization fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbintz committed Jul 3, 2015
1 parent ef3895c commit d06a756
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/rack/livereload/body_processor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

it 'responds false when no head tag' do
regex.match("<header></header>").should be_false
regex.match("<header></header>").should be_falsey
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/rack/livereload/processing_skip_analyzer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

describe '#skip_processing?' do
it "should skip processing" do
subject.skip_processing?.should be_true
subject.skip_processing?.should be_truthy
end
end

Expand Down
6 changes: 4 additions & 2 deletions spec/rack/livereload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

subject { middleware }

its(:app) { should == app }
it 'should be an app' do
middleware.app.should be == app
end

let(:env) { {} }
let(:options) { {} }
Expand All @@ -20,7 +22,7 @@
end

it 'should return the js file' do
middleware._call(env).should be_true
middleware._call(env).should be_truthy
end
end
end
Expand Down

0 comments on commit d06a756

Please sign in to comment.