Commit a18f42dd70f4938e118a00e1a2731742e930eca1
1 parent
931916d7
Exists in
master
and in
1 other branch
replace fabricates with stub models in app view specs
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
spec/views/apps/index.html.haml_spec.rb
... | ... | @@ -2,11 +2,11 @@ require 'spec_helper' |
2 | 2 | |
3 | 3 | describe "apps/index.html.haml" do |
4 | 4 | before do |
5 | - app = Fabricate(:app, :deploys => [Fabricate(:deploy, :revision => "123456789abcdef")]) | |
5 | + app = stub_model(App, :deploys => [stub_model(Deploy, :created_at => Time.now, :revision => "123456789abcdef")]) | |
6 | 6 | assign :apps, [app] |
7 | 7 | assign :problem_counts, {app.id => 0} |
8 | 8 | assign :unresolved_counts, {app.id => 0} |
9 | - controller.stub(:current_user) { Fabricate(:user) } | |
9 | + controller.stub(:current_user) { stub_model(User) } | |
10 | 10 | end |
11 | 11 | |
12 | 12 | describe "deploy column" do | ... | ... |