Sha256: 44dd899871a7408d0752cc8331d3e7b3b8d5bb696d30156a0cdb98f2e0c6383e
Contents?: true
Size: 770 Bytes
Versions: 26
Compression:
Stored size: 770 Bytes
Contents
require 'spec_helper' describe "EY::Model::Instance#has_app_code?" do it "is true for solos" do EY::Model::Instance.from_hash("role" => "solo").should have_app_code end it "is true for app masters" do EY::Model::Instance.from_hash("role" => "app_master").should have_app_code end it "is true for app slaves" do EY::Model::Instance.from_hash("role" => "app").should have_app_code end it "is true for utilities" do EY::Model::Instance.from_hash("role" => "util").should have_app_code end it "is false for DB masters" do EY::Model::Instance.from_hash("role" => "db_master").should_not have_app_code end it "is false for DB slaves" do EY::Model::Instance.from_hash("role" => "db_slave").should_not have_app_code end end
Version data entries
26 entries across 26 versions & 1 rubygems