Sha256: 05e7feb4dbc0b33bb897e1e8a47285e3b0954e818baf31f2e37ce6a3e149b968
Contents?: true
Size: 714 Bytes
Versions: 8
Compression:
Stored size: 714 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../spec_helper") describe "EvernoteOAuth::NoteStore" do context "#initialize" do it "assigns instance variables" do note_store = EvernoteOAuth::NoteStore.new(client: 'client') note_store.instance_variable_get(:@client).should == 'client' end end context "#method_missing" do it "dispatches method" do mock_client = mock(Object) mock_client.should_receive(:send).with(:call_method, 'args') mock_client.class.should_receive(:instance_method).with(:call_method).and_return{ Proc.new {|a| a} } note_store = EvernoteOAuth::NoteStore.new(client: mock_client) note_store.call_method('args') end end end
Version data entries
8 entries across 8 versions & 1 rubygems