master/spec/guard_spec.rb

24 lines
454 B
Ruby
Raw Normal View History

2010-10-18 19:45:31 +00:00
require 'spec_helper'
describe Guard do
describe "get_guard_class" do
it "should return Guard::RSpec" do
Guard.get_guard_class('rspec').should == Guard::RSpec
end
end
describe "locate_guard" do
2010-10-20 20:40:44 +00:00
it "should return guard-rspec gem path" do
guard_path = Guard.locate_guard('rspec')
guard_path.should match(/^.*\/guard-rspec-.*$/)
guard_path.should == guard_path.chomp
end
end
2010-10-18 19:45:31 +00:00
end