master/spec/guard/interactor_spec.rb
Thibaud Guillaume-Gentil c4ddb29fc6 Work on specs
2011-09-01 23:24:45 +02:00

27 lines
432 B
Ruby

require 'spec_helper'
describe Guard::Interactor do
subject { Guard::Interactor.new }
describe "#initialize" do
it "un-lock by default" do
subject.locked.should be_false
end
end
describe "#lock" do
it "locks" do
subject.lock
subject.locked.should be_true
end
end
describe "#unlock" do
it "unlocks" do
subject.unlock
subject.locked.should be_false
end
end
end