Skip to content

Commit

Permalink
Merge pull request #112 from WojtekKruszewski/fix_rspec_deprecations
Browse files Browse the repository at this point in the history
Fix rspec deprecations
  • Loading branch information
thibaudgg committed Jun 25, 2014
2 parents 7fbe2f3 + b601b89 commit c95da08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/lib/guard/livereload/reactor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe Guard::LiveReload::Reactor do
let(:paths) { %w[stylesheets/layout.css stylesheets/style.css] }
before { Guard::UI.stub(:info) }
before { allow(Guard::UI).to receive(:info) }

describe "#reload_browser(paths = [])" do
it "displays a message" do
Expand Down
8 changes: 4 additions & 4 deletions spec/lib/guard/livereload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,24 @@
describe ":apply_css_live option" do
it "is true by default" do
plugin = Guard::LiveReload.new
expect(plugin.options[:apply_css_live]).to be_true
expect(plugin.options[:apply_css_live]).to be_truthy
end

it "can be set to false" do
plugin = Guard::LiveReload.new(apply_css_live: false)
expect(plugin.options[:apply_css_live]).to be_false
expect(plugin.options[:apply_css_live]).to be_falsey
end
end

describe ":override_url option" do
it "is false by default" do
plugin = Guard::LiveReload.new
expect(plugin.options[:override_url]).to be_false
expect(plugin.options[:override_url]).to be_falsey
end

it "can be set to false" do
plugin = Guard::LiveReload.new(override_url: true)
expect(plugin.options[:override_url]).to be_true
expect(plugin.options[:override_url]).to be_truthy
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ENV["GUARD_ENV"] = 'test'

RSpec.configure do |config|
config.color_enabled = true
config.color = true
config.filter_run focus: true
config.run_all_when_everything_filtered = true
end

0 comments on commit c95da08

Please sign in to comment.