Skip to content

Commit

Permalink
refactored 'webi_report_engine_spec.rb'
Browse files Browse the repository at this point in the history
  • Loading branch information
semmons99 committed Feb 9, 2010
1 parent 08d1be3 commit cee0c58
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/webi_report_engine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ module ReportEngines; module ReportEngineType; module WI_REPORT_ENGINE; end; end
end

describe "#new" do
it "should allow you to set the locale" do
before(:each) do
@webi_report_engine.should_receive(:setLocale).once.with("en_CA")
end

it "should allow you to set the locale" do
WebiReportEngine.new(@enterprise_session, "en_CA")
end
end

describe "#open" do
it "should call the underlying #openDocument with the supplied docid" do
before(:each) do
@webi_report_engine.should_receive(:openDocument).once.with("1234")
end

it "should call the underlying #openDocument with the supplied docid" do
@wre.open("1234")
end
end
Expand Down

0 comments on commit cee0c58

Please sign in to comment.