spec/scm/status_spec.rb in rubygems-tasks-0.2.4 vs spec/scm/status_spec.rb in rubygems-tasks-0.2.5
- old
+ new
@@ -7,13 +7,13 @@
describe "#status" do
context "git" do
include_context "rake"
it "should run `git status --untracked-files=no`" do
- subject.project.stub!(:scm).and_return(:git)
+ allow(subject.project).to receive(:scm).and_return(:git)
- subject.should_receive(:run).with(
+ expect(subject).to receive(:run).with(
'git', 'status', '--untracked-files=no'
)
subject.status
end
@@ -21,13 +21,13 @@
context "hg" do
include_context "rake"
it "should run `hg status --quiet`" do
- subject.project.stub!(:scm).and_return(:hg)
+ allow(subject.project).to receive(:scm).and_return(:hg)
- subject.should_receive(:run).with(
+ expect(subject).to receive(:run).with(
'hg', 'status', '--quiet'
)
subject.status
end
@@ -35,12 +35,12 @@
context "svn" do
include_context "rake"
it "should run `svn status --quiet`" do
- subject.project.stub!(:scm).and_return(:svn)
+ allow(subject.project).to receive(:scm).and_return(:svn)
- subject.should_receive(:run).with(
+ expect(subject).to receive(:run).with(
'svn', 'status', '--quiet'
)
subject.status
end