Sha256: d4a9e0290f85d4281f7d1c5056e26e3204fc4c6dcbde0f2b4fccc85b1d3e642a

Contents?: true

Size: 373 Bytes

Versions: 42

Compression:

Stored size: 373 Bytes

Contents

require 'rails_helper'

describe Admin::RegionsHelper do

  describe "#render_region" do

    before :each do
      allow(controller).to receive(:controller_name).and_return("page")
      allow(controller).to receive(:template_name).and_return("index")
    end

    it "outputs html_safe string" do
      expect(helper.render_region :foo).to be_html_safe
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
trusty-cms-2.0.9.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.8.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.7.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.5.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.4.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.3.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.2.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.1.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-2.0.0.pre.beta spec/helpers/regions_helper_spec.rb
trusty-cms-1.2.29 spec/helpers/regions_helper_spec.rb
trusty-cms-1.2.28 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.28 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.27 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.26 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.25 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.24 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.23 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.22 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.21 spec/helpers/regions_helper_spec.rb
trusty-cms-1.1.20 spec/helpers/regions_helper_spec.rb