spec/seymour/renderable_spec.rb in seymour-0.0.3 vs spec/seymour/renderable_spec.rb in seymour-0.0.4
- old
+ new
@@ -1,10 +1,15 @@
require 'spec_helper'
describe Seymour::Renderable do
+
+ class RenderableActivity
+ include Seymour::Renderable
+ end
+
describe "render" do
let(:response) { mock(ActionDispatch::Response, :body => 'Lots of activity going on') }
- let(:activity) { Factory(:test_activity) }
+ let(:activity) { RenderableActivity.new }
before(:each) do
ok_rack_response = lambda { |env| ['200', {}, response ] }
Seymour::RenderController.stub!(:action).and_return ok_rack_response
end