describe Codebuild::Role do let(:role) do Codebuild::Role.new(role_path: "spec/fixtures/app/.codebuild/role.rb") end context "general" do it "builds up the template in memory" do template = role.run expect(template.keys).to eq ["IamRole"] expect(template["IamRole"]).to be_a(Hash) end end end