spec/gmail_spec.rb in gmail-0.3.4 vs spec/gmail_spec.rb in gmail-0.4.0
- old
+ new
@@ -6,17 +6,17 @@
end
%w[new new!].each do |method|
it "##{method} should properly connect with GMail service and return valid connection object" do
gmail = Gmail.send(method, *TEST_ACCOUNT)
- gmail.should be_kind_of(Gmail::Client)
+ gmail.should be_kind_of(Gmail::Client::Plain)
gmail.connection.should_not be_nil
gmail.should be_logged_in
end
it "##{method} should connect with client and give it context when block given" do
Gmail.send(method, *TEST_ACCOUNT) do |gmail|
- gmail.should be_kind_of(Gmail::Client)
+ gmail.should be_kind_of(Gmail::Client::Plain)
gmail.connection.should_not be_nil
gmail.should be_logged_in
end
end
end