diff options
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/commit_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/project_services/hip_chat_message_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/project_services/slack_message_spec.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index 1658ae6..8c0073e 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -138,7 +138,7 @@ describe Commit do commit.create_deploy_builds commit.builds.reload - commit.builds.size.should == 1 + commit.builds.size.should == 2 end end diff --git a/spec/models/project_services/hip_chat_message_spec.rb b/spec/models/project_services/hip_chat_message_spec.rb index d4bfb31..5fa5549 100644 --- a/spec/models/project_services/hip_chat_message_spec.rb +++ b/spec/models/project_services/hip_chat_message_spec.rb @@ -8,7 +8,7 @@ describe HipChatMessage do context "One build" do let(:commit) do commit = FactoryGirl.create(:commit, project: project) - commit.push_data[:ci_yaml_file] = YAML.dump({jobs: ["ls"]}) + commit.push_data[:ci_yaml_file] = YAML.dump({rspec: { test: 'pwd' }}) commit.save commit end diff --git a/spec/models/project_services/slack_message_spec.rb b/spec/models/project_services/slack_message_spec.rb index 03c0cd3..857935d 100644 --- a/spec/models/project_services/slack_message_spec.rb +++ b/spec/models/project_services/slack_message_spec.rb @@ -8,7 +8,7 @@ describe SlackMessage do context "One build" do let(:commit) do commit = FactoryGirl.create(:commit, project: project) - commit.push_data[:ci_yaml_file] = YAML.dump({jobs: ["ls"]}) + commit.push_data[:ci_yaml_file] = YAML.dump({rspec: { test: "ls" }}) commit.save commit end |