Sha256: 7a623f302308df6ea77ae5f26e5606763fc83f777f9dcb12223a4b1f456f64f4
Contents?: true
Size: 766 Bytes
Versions: 5
Compression:
Stored size: 766 Bytes
Contents
require 'helper' describe OmniAuth::Form do describe '.build' do it 'yields the instance when called with a block and argument' do OmniAuth::Form.build { |f| expect(f).to be_kind_of(OmniAuth::Form) } end it 'evaluates in the instance when called with a block and no argument' do OmniAuth::Form.build { |f| expect(f.class).to eq(OmniAuth::Form) } end end describe '#initialize' do it 'sets the form action to the passed :url option' do expect(OmniAuth::Form.new(:url => '/awesome').to_html).to be_include("action='/awesome'") end it 'sets an H1 tag from the passed :title option' do expect(OmniAuth::Form.new(:title => 'Something Cool').to_html).to be_include('<h1>Something Cool</h1>') end end end
Version data entries
5 entries across 5 versions & 2 rubygems