spec/shelly/model_spec.rb in shelly-0.2.28 vs spec/shelly/model_spec.rb in shelly-0.3.0
- old
+ new
@@ -5,14 +5,12 @@
config_dir = File.expand_path("~/.shelly")
FileUtils.mkdir_p(config_dir)
end
describe "#current_user" do
- it "should return user with loaded credentials" do
- File.open(File.join("~/.shelly/credentials"), "w") { |f| f << "superman@example.com\nthe-kal-el" }
+ it "should return a user" do
base = Shelly::Model.new
user = base.current_user
- user.email.should == "superman@example.com"
- user.password.should == "the-kal-el"
+ user.should be_a(Shelly::User)
end
end
end