diff options
| author | Peter Mangiafico | 2011-04-13 13:05:54 -0700 |
|---|---|---|
| committer | Chris Sepic | 2011-06-28 17:24:00 -0500 |
| commit | 0275dcdfb4fb7460b977e9e32bbcf115bbb6be22 (patch) | |
| tree | 7e44a28ef89ab4b1786fc09daa9173d4e8b0c3ac | |
| parent | e93a209bee4419f0d3e8261cd7026774a31db3e4 (diff) | |
| download | evernote-0275dcdfb4fb7460b977e9e32bbcf115bbb6be22.tar.bz2 | |
FIXED: spec tests; updated readme; allow for users to pass in keys in hash
| -rw-r--r-- | spec/evernote/user_store_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/evernote/user_store_spec.rb b/spec/evernote/user_store_spec.rb index 1f769ee..0b34645 100644 --- a/spec/evernote/user_store_spec.rb +++ b/spec/evernote/user_store_spec.rb @@ -36,7 +36,7 @@ describe "Evernote::UserStore" do it "should authenticate" do Evernote::Client.stub!(:new => mock("Evernote::Client", :checkVersion => true)) - Evernote::UserStore.new(@user_store_url, @config) + user_store=Evernote::UserStore.new(@user_store_url, @config) user_store.instance_variable_get(:@client).should_receive(:authenticate).with("cgs", "password", "12345", "ABCDE").and_return(nil) user_store.authenticate @@ -49,7 +49,7 @@ describe "Evernote::UserStore" do it "should wrap authentication failure" do Evernote::Client.stub!(:new => mock("Evernote::Client", :checkVersion => true)) - Evernote::UserStore.new(@user_store_url, @config) + user_store=Evernote::UserStore.new(@user_store_url, @config) user_store.instance_variable_get(:@client).should_receive(:authenticate).and_raise(Evernote::EDAM::Error::EDAMUserException) lambda { @@ -59,7 +59,7 @@ describe "Evernote::UserStore" do it "should proxy methods" do Evernote::Client.stub!(:new => mock("Evernote::Client", :checkVersion => true)) - Evernote::UserStore.new(@user_store_url, @config) + user_store=Evernote::UserStore.new(@user_store_url, @config) user_store.instance_variable_get(:@client).should_receive(:foobar).and_return(nil) user_store.foobar |
