spec/integration_spec.rb in dm-parse-0.3.5 vs spec/integration_spec.rb in dm-parse-0.3.6

- old
+ new

@@ -133,9 +133,15 @@ describe "#authenticate" do subject { model.authenticate username, password } it { should eq(user) } + + context "when adapter raise error" do + before { DataMapper::Adapters::ParseAdapter.any_instance.stub(:sign_in).and_raise(Parse::ParseError) } + + it { should be_nil } + end end end end describe "adapter" do