master/spec/guard/interactor_spec.rb

27 lines
432 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Guard::Interactor do
2011-09-01 21:24:45 +00:00
subject { Guard::Interactor.new }
2011-09-01 21:24:45 +00:00
describe "#initialize" do
it "un-lock by default" do
subject.locked.should be_false
end
end
2011-09-01 21:24:45 +00:00
describe "#lock" do
it "locks" do
subject.lock
subject.locked.should be_true
end
end
2011-09-01 21:24:45 +00:00
describe "#unlock" do
it "unlocks" do
subject.unlock
subject.locked.should be_false
end
end
2011-09-01 21:24:45 +00:00
end