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
|
|
|
|
|
2010-10-20 20:34:32 +00:00
|
|
|
describe "locate_guard" do
|
|
|
|
|
2010-10-20 20:40:44 +00:00
|
|
|
it "should return guard-rspec gem path" do
|
2010-10-23 10:43:51 +00:00
|
|
|
guard_path = Guard.locate_guard('rspec')
|
|
|
|
guard_path.should match(/^.*\/guard-rspec-.*$/)
|
|
|
|
guard_path.should == guard_path.chomp
|
2010-10-20 20:34:32 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-10-18 19:45:31 +00:00
|
|
|
end
|