From a18f42dd70f4938e118a00e1a2731742e930eca1 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Tue, 10 Jul 2012 23:33:03 +0300 Subject: [PATCH] replace fabricates with stub models in app view specs --- spec/views/apps/index.html.haml_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/views/apps/index.html.haml_spec.rb b/spec/views/apps/index.html.haml_spec.rb index bd27da4..60359da 100644 --- a/spec/views/apps/index.html.haml_spec.rb +++ b/spec/views/apps/index.html.haml_spec.rb @@ -2,11 +2,11 @@ require 'spec_helper' describe "apps/index.html.haml" do before do - app = Fabricate(:app, :deploys => [Fabricate(:deploy, :revision => "123456789abcdef")]) + app = stub_model(App, :deploys => [stub_model(Deploy, :created_at => Time.now, :revision => "123456789abcdef")]) assign :apps, [app] assign :problem_counts, {app.id => 0} assign :unresolved_counts, {app.id => 0} - controller.stub(:current_user) { Fabricate(:user) } + controller.stub(:current_user) { stub_model(User) } end describe "deploy column" do -- libgit2 0.21.2