diff --git a/data/cookies_file b/data/cookies_file new file mode 100644 index 0000000..97b9387 --- /dev/null +++ b/data/cookies_file @@ -0,0 +1 @@ +spec test fake cookies_file diff --git a/spec/ruby_bugzilla_spec.rb b/spec/ruby_bugzilla_spec.rb index f9fba84..c5567a8 100644 --- a/spec/ruby_bugzilla_spec.rb +++ b/spec/ruby_bugzilla_spec.rb @@ -7,7 +7,8 @@ # Assume most tests have bugzilla installed and logged in by faking with # valid files stub_const("RubyBugzilla::CMD", "/bin/echo") - stub_const("RubyBugzilla::COOKIES_FILE", "/bin/echo") + stub_const("RubyBugzilla::COOKIES_FILE", File.expand_path("data/cookies_file", File.dirname(__FILE__))) + end context "#new" do