spec/views/owns/index.html.erb_spec.rb in enju_biblio-0.1.0.pre42 vs spec/views/owns/index.html.erb_spec.rb in enju_biblio-0.1.0.pre43
- old
+ new
@@ -3,14 +3,14 @@
describe "owns/index" do
before(:each) do
assign(:owns, Kaminari::paginate_array([
stub_model(Own,
:item_id => 1,
- :patron_id => 1
+ :agent_id => 1
),
stub_model(Own,
:item_id => 1,
- :patron_id => 2
+ :agent_id => 2
)
]).page(1))
@ability = Object.new
@ability.extend(CanCan::Ability)
controller.stub(:current_ability) { @ability }