Skip to content

Commit

Permalink
fixed specs
Browse files Browse the repository at this point in the history
  • Loading branch information
cristi committed Oct 14, 2009
1 parent 34b3ffa commit 77178b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/tiny_paper_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
dataset :users

before do
login_as :developer
login_as :existing
end

describe "handling GET images" do
Expand Down Expand Up @@ -175,12 +175,12 @@ def do_post(options={})

[:images, :files, :pages].each do |action|
it "#{action} includes javascripts" do
['tiny_mce/tiny_mce_popup','admin/tiny_paper','controls'].each do |js|
['admin/prototype', 'admin/effects','admin/controls', 'tiny_mce/tiny_mce_popup', 'admin/tiny_paper'].each do |js|
controller.should_receive(:include_javascript).with(js)
end
get action
end

it "#{action} includes stylesheets" do
controller.should_receive(:include_stylesheet).with("admin/tiny_paper")
get action
Expand Down

0 comments on commit 77178b4

Please sign in to comment.