spec/abilities/event_spec.rb in date_book-0.0.6 vs spec/abilities/event_spec.rb in date_book-0.1.0
- old
+ new
@@ -17,10 +17,10 @@
it { should be_able_to(:show, event) }
it { should_not be_able_to(:manage, event) }
it { should_not be_able_to(:create, Event) }
end
context 'when logged in as regular user' do
- let(:my_event) { science_fiction_club_event }
+ let(:my_event) { science_fiction_club }
let(:other_event) { monday_event }
let(:user) { regular_user }
subject(:ability) { Ability.new(user) }
it { should be_able_to(:index, my_event) }
it { should be_able_to(:show, my_event) }