Sha256: 37a79e17ae87f431c6fc4fa9399b4ef02aba3e3536bb11c25a40a420c132bd29

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 Bytes

Contents

require 'spec_helper'

describe DomFor do

  context '#dom_for' do
    it 'invokes #dom_for_model' do
      expect(helper.dom_for(User)).to eq '<div class="users" id="users" />'
    end

    it 'invokes #dom_for_record' do
      expect(helper.dom_for(User.new)).to eq '<div class="user" id="new_user" />'
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dom_for-1.0.2 spec/helpers/dom_for_spec.rb
dom_for-1.0.1 spec/helpers/dom_for_spec.rb
dom_for-1.0.0 spec/helpers/dom_for_spec.rb