OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/spec/models/issue_spec.rb

18 lines
437 B

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Issue do
before(:each) do
@example = Issue.new
@example.stub(:move_to_project_without_transaction_without_autolink).and_return(false)
end
it do
@example.move_to_project_without_transaction(nil).should be_false
end
it do
lambda { @example.move_to_project_without_transaction(nil) }.should_not raise_error(NoMethodError)
end
end