Do not use set_current_view_context for decorator specs

openid
Marcin Kulik 12 years ago
parent 92dde22afe
commit 26923b64a5

@ -1,8 +1,6 @@
require 'spec_helper'
describe AsciicastDecorator do
before { ApplicationController.new.set_current_view_context }
describe '#os' do
it 'returns "unknown" when uname is blank' do
asciicast = Asciicast.new

@ -1,8 +1,6 @@
require 'spec_helper'
describe CommentDecorator do
before { ApplicationController.new.set_current_view_context }
let(:decorated_comment) { CommentDecorator.new(comment) }
describe "#as_json" do
@ -41,5 +39,4 @@ describe CommentDecorator do
end
end
end

Loading…
Cancel
Save