spec/lib/touch_placeholders_spec.rb in qbrick-2.5.0.pre vs spec/lib/touch_placeholders_spec.rb in qbrick-2.5.0
- old
+ new
@@ -1,19 +1,18 @@
require 'spec_helper'
-require_relative '../../lib/kuhsaft/touch_placeholders'
+require_relative '../../lib/qbrick/touch_placeholders'
-describe Kuhsaft::TouchPlaceholders do
-
+describe Qbrick::TouchPlaceholders do
before :all do
m = ActiveRecord::Migration.new
m.verbose = false
m.create_table :dummy_models do |t|
t.timestamps
end
class DummyModel < ActiveRecord::Base
- include Kuhsaft::TouchPlaceholders
+ include Qbrick::TouchPlaceholders
end
@page = FactoryGirl.create(:page)
@placeholder = FactoryGirl.create(:placeholder_brick, brick_list: @page, template_name: 'foo')
end
@@ -35,10 +34,10 @@
end
describe 'after_save_callback' do
it 'looks for the bricks with affected templates and touches them' do
DummyModel.class_eval { placeholder_templates 'foo' }
- expect_any_instance_of(Kuhsaft::PlaceholderBrick).to receive(:touch)
+ expect_any_instance_of(Qbrick::PlaceholderBrick).to receive(:touch)
DummyModel.create
end
end
end