Sha256: 2b40d611fa4b37780b4184d42d3b4eeb2fa614370e1d703edef93e46c0d5d319

Contents?: true

Size: 568 Bytes

Versions: 18

Compression:

Stored size: 568 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe MuckAdminHelper do
  
  describe "header_nav_item_image" do
    it "will output a background style with an image" do
      header_nav_item = mock(:header_nav_item)
      header_nav_item.stub!(:image).and_return('something.gif')
      helper.header_nav_item_image(header_nav_item).should include("background-image:url('something.gif');")
    end
  end
  
  describe "hide_admin_messages" do
    it "will hide admin messages" do
      helper.hide_admin_messages.should include(".hide();")
    end
  end
  
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
muck-engine-3.5.0 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.4.0 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.18 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.17 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.16 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.15 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.14 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.13 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.12 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.11 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.10 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.3.6 test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.0.8 test/rails_test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.0.7 test/rails_test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.0.6 test/rails_test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.0.5 test/rails_test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.0.4 test/rails_test/spec/helpers/muck_admin_helper_spec.rb
muck-engine-3.0.3 test/rails_test/spec/helpers/muck_admin_helper_spec.rb