Sha256: bfbd69f24fee5ed708ecda596c91b822b6181ab270f9c7f216f8024edb55ff40
Contents?: true
Size: 865 Bytes
Versions: 41
Compression:
Stored size: 865 Bytes
Contents
require 'spec_helper' describe "EY::Model::Instance#has_app_code?" do def have_app_code simple_matcher("has app code") { |given| given.has_app_code? } end 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
41 entries across 41 versions & 1 rubygems