spec/lib/legato/management/account_spec.rb in legato-0.3.3 vs spec/lib/legato/management/account_spec.rb in legato-0.4.0
- old
+ new
@@ -13,9 +13,15 @@
account = Legato::Management::Account.new({"id" => 12345, "name" => "Account 1"}, user)
account.user.should == user
account.id.should == 12345
account.name.should == "Account 1"
end
+
+ it 'finds an instance from a child management instance' do
+ user = stub(:api_key => nil)
+ profile = Legato::Management::Profile.new({:account_id => 123}, user)
+ # account = Legato::Management::Account
+ end
end
context "An Account instance" do
let(:account) {Legato::Management::Account.new({"id" => 123456}, stub)}