Sha256: 8681a1ca8493a1ca4ada5a1e50b8323d6f71ba899435235a0fc660fece91fec2

Contents?: true

Size: 296 Bytes

Versions: 36

Compression:

Stored size: 296 Bytes

Contents

require 'rails_helper'

describe Dorsale::FormHelper, type: :helper do
  describe "form_buttons" do
    it "should not return full url" do
      html = form_buttons(back_url: "http://example.org/abc")
      expect(html).to include "/abc"
      expect(html).to_not include "://"
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
dorsale-3.4.0 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.3.0 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.2.0 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.7 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.6 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.5 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.4 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.3 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.2 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.1 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.1.0 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.0.3 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.0.2 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.0.1 spec/helpers/dorsale/form_helper_spec.rb
dorsale-3.0.0 spec/helpers/dorsale/form_helper_spec.rb
dorsale-2.7.3 spec/helpers/dorsale/form_helper_spec.rb
dorsale-2.7.2 spec/helpers/dorsale/form_helper_spec.rb
dorsale-2.7.1 spec/helpers/dorsale/form_helper_spec.rb
dorsale-2.7.0 spec/helpers/dorsale/form_helper_spec.rb
dorsale-2.6.8 spec/helpers/dorsale/form_helper_spec.rb