spec/controllers/base/ordering_spec.rb in stair_master-0.0.3 vs spec/controllers/base/ordering_spec.rb in stair_master-0.1.0

- old
+ new

@@ -11,30 +11,7 @@ get :show subject.available_steps.should eq [:step_one, :step_two, :step_three] end end - - describe '#step_is_available?' do - it 'should return true if in list' do - get :show - - subject.should be_step_is_available(:step_one) - subject.should be_step_is_available(:step_two) - subject.should be_step_is_available(:step_three) - end - - it 'should return false if not available' do - StairMaster::Step.any_instance.stubs(:available?).returns(false) - get :show - - subject.should_not be_step_is_available(:step_one) - end - - it 'should throw error if not apart of inital list' do - get :show - - expect{ subject.step_is_available?(:step_four) }.to raise_error - end - end end end \ No newline at end of file