diff --git a/spec/plugin/clever_turbot_spec.rb b/spec/plugin/clever_turbot_spec.rb index 4c87c97..18fbce4 100644 --- a/spec/plugin/clever_turbot_spec.rb +++ b/spec/plugin/clever_turbot_spec.rb @@ -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 diff --git a/spec/plugin/pollster_spec.rb b/spec/plugin/pollster_spec.rb index 7e0c8ad..f647117 100644 --- a/spec/plugin/pollster_spec.rb +++ b/spec/plugin/pollster_spec.rb @@ -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 @@ -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")