spec/support/noteable_shared_examples.rb in basecrm-0.1.0 vs spec/support/noteable_shared_examples.rb in basecrm-0.1.1
- old
+ new
@@ -19,13 +19,13 @@
end
end
describe "#notes.create" do
- let(:message) { mock }
- let(:note) { mock }
- let(:fetch_scope) { mock }
+ let(:message) { double }
+ let(:note) { double }
+ let(:fetch_scope) { double }
it "passes the token and applies the params" do
subject.
should_receive(:pass_headers).
with(BaseCrm::Note).
@@ -44,12 +44,12 @@
end
end
describe "#create_note" do
- let(:message) { mock }
- let(:notes) { mock }
- let(:note) { mock }
+ let(:message) { double }
+ let(:notes) { double }
+ let(:note) { double }
it "creates a new note" do
subject.should_receive(:notes).and_return(notes)
notes.should_receive(:create).with({
:content => message