require File.dirname(__FILE__) + '/../spec_helper'
describe "RickAstly" do
before(:each) do
@rick = RickAstley.new
@rick.stub!(:rickrolled).and_return(true)
end

it "should never give you up" do
@rick.give_you_up?.should be_false
end

it "should never let you down" do
@rick.let_down(mock_model(You)).should == 'never'
end

it "should never run around and hurt you" do
@rick.run_around.andand.hurt_you.should be_nil
end

it "should never make you cry" do
@rick.make_cry(:person => 'you').should have(0).things
end

it "should never say goodbye" do
lambda { @rick.say(GOODBYE) }.should raise_error(RickAstley::InvalidStringError)
end

it "should never tell a lie and hurt you" do
@rick.tell.should_not respond_to(:lie)
end
end