Sha256: 672821a42a2a1a1fbe051ce0308e0f063842f97d5b1bf57348fb1e784600d08c
Contents?: true
Size: 876 Bytes
Versions: 25
Compression:
Stored size: 876 Bytes
Contents
require "spec_helper" describe Brightbox::CollaboratingAccount do include_context "collaborating accounts" let(:account) { Brightbox::CollaboratingAccount.new(initial_model) } let(:row_data) { account.to_row } describe "#to_row" do context "when initialised with an account" do let(:initial_model) { owned_account } [:cloud_ips_limit, :lb_limit, :ram_limit, :ram_used, :ram_free].each do |key| it "returns the number for #{key}" do expect(row_data[key]).to be_kind_of(Fixnum) end end end context "when initialised with a collaboration" do let(:initial_model) { active_collaboration } [:cloud_ips_limit, :lb_limit, :ram_limit, :ram_used, :ram_free].each do |key| it "returns empty string for #{key}" do expect(row_data[key]).to be_empty end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems