diff --git a/spec/controllers/apps_controller_spec.rb b/spec/controllers/apps_controller_spec.rb index 91ddc4e..cabda4b 100644 --- a/spec/controllers/apps_controller_spec.rb +++ b/spec/controllers/apps_controller_spec.rb @@ -52,7 +52,6 @@ describe AppsController do it "should list atom feed successfully" do get :show, :id => @app.id, :format => "atom" response.should be_success - response.body.should match(@problem.message) end context "pagination" do diff --git a/spec/views/apps/show.atom.builder_spec.rb b/spec/views/apps/show.atom.builder_spec.rb new file mode 100644 index 0000000..4894160 --- /dev/null +++ b/spec/views/apps/show.atom.builder_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +describe "apps/show.atom.builder" do + let(:app) { stub_model(App) } + let(:problems) { [ + stub_model(Problem, :message => 'foo', :app => app) + ]} + + before do + view.stub(:app).and_return(app) + view.stub(:problems).and_return(problems) + end + + context "with errs" do + it 'see the errs message' do + render + expect(rendered).to match(problems.first.message) + end + end + +end -- libgit2 0.21.2