Skip to content

Commit

Permalink
Fix rspec deprecations (stub -> double).
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Sep 25, 2013
1 parent b994447 commit 45e7958
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/plugin/clever_turbot_spec.rb
Expand Up @@ -4,7 +4,7 @@

describe TurbotPlugins::CleverTurbot do
subject(:plugin){ described_class.new(double.as_null_object) }
let(:m) {double(:user => stub(:nick => "testnick")) }
let(:m) {double(:user => double(:nick => "testnick")) }

context ".commands" do
it "returns a PluginCommand instance." do
Expand Down
4 changes: 2 additions & 2 deletions spec/plugin/pollster_spec.rb
Expand Up @@ -6,7 +6,7 @@

context "#set_poll" do
context "If passed a string from a valid user." do
let(:m) { double(:user => stub(:nick => "rondale_sc")) }
let(:m) { double(:user => double(:nick => "rondale_sc")) }
let(:question) { "This is a question" }

it "should set the question for a poll" do
Expand All @@ -28,7 +28,7 @@
end

context "If passed a string from invalid user." do
let(:m) { double(:user => stub(:nick => "not_valid_nick")) }
let(:m) { double(:user => double(:nick => "not_valid_nick")) }
it "should return false" do
m.should_receive(:reply).with("You do not have the correct permissions")

Expand Down

0 comments on commit 45e7958

Please sign in to comment.