Sha256: 48ca8fcfeba83d920db113b574b42d069405663e7acf85c987be04f63023dca0
Contents?: true
Size: 624 Bytes
Versions: 5
Compression:
Stored size: 624 Bytes
Contents
require "spec_helper" describe Uploadcare::Rails::ActionView::UploaderTags do let(:expected_selector) do 'input[type="hidden"][role="uploadcare-uploader"][data-path-value="true"]' end it "should include uploader tag for name" do tag = helper.uploadcare_uploader_tag :file expect(tag).to be_kind_of(String) expect(tag).to have_selector(expected_selector, visible: :all) end it "should include uploader field for object" do tag = helper.uploadcare_uploader_field :post, :file expect(tag).to be_kind_of(String) expect(tag).to have_selector(expected_selector, visible: :all) end end
Version data entries
5 entries across 5 versions & 1 rubygems