spec/commit_spec.rb in gitmine-0.1.2 vs spec/commit_spec.rb in gitmine-0.1.3

- old
+ new

@@ -1,11 +1,11 @@ require 'spec_helper' -describe Commit do +describe Gitmine::Commit do let(:grit_commit) { Grit::Commit.create(nil, {:message => "Commit message"}) } - let(:commit) { Commit.new(grit_commit) } - let(:issue) { Issue.new } + let(:commit) { Gitmine::Commit.new(grit_commit) } + let(:issue) { Gitmine::Issue.new } describe "#new" do it "should take a grit_commit object and store it" do commit.grit_commit.should == grit_commit end @@ -22,15 +22,15 @@ it "should respond_to :issue" do commit.should respond_to :issue end it "should return issue via #Issue.get_for_commit" do - Issue.should_receive(:get_for_commit).with("Commit message") { issue } + Gitmine::Issue.should_receive(:get_for_commit).with("Commit message") { issue } commit.issue.should == issue end it "should memoize issue" do - Issue.should_receive(:get_for_commit).with("Commit message") { issue }.once + Gitmine::Issue.should_receive(:get_for_commit).with("Commit message") { issue }.once commit.issue.should == issue commit.issue.should == issue end end