spec/git_spec.rb in heroku_san-4.2.3 vs spec/git_spec.rb in heroku_san-4.2.5

- old
+ new

@@ -1,9 +1,9 @@ require 'spec_helper' -require 'git' +require 'heroku_san/git' -class GitTest; include Git; end +class GitTest; include HerokuSan::Git; end describe GitTest do describe "#git_push" do it "pushes to heroku" do subject.should_receive(:sh).with("git update-ref refs/heroku_san/deploy HEAD^{commit}") @@ -42,10 +42,10 @@ it "raises exception if no tags match the pattern" do subject.should_receive("`").with("git tag -l 'pattern*'") { "\n" } expect { subject.git_tag('pattern*') - }.to raise_error(Git::NoTagFoundError) + }.to raise_error(HerokuSan::Git::NoTagFoundError) end it "returns nil for a nil glob" do subject.should_not_receive("`").with("git tag -l ''") { "\n" } subject.git_tag(nil).should == nil \ No newline at end of file