Sha256: 1e041487d0f493bf757e3e492e1395ca43933c1a1319b09a4f87bd87dbab2e6c
Contents?: true
Size: 757 Bytes
Versions: 2
Compression:
Stored size: 757 Bytes
Contents
require 'spec_helper' require 'generators/rom/relation_generator' describe ROM::Generators::RelationGenerator do destination File.expand_path('../../../../tmp', __FILE__) before(:all) do prepare_destination run_generator ['users'] end specify do expect(destination_root).to have_structure { directory 'app' do directory 'relations' do file 'users.rb' do contains <<-CONTENT.strip_heredoc ROM.relation(:users) do # define your methods here ie: # # def all # select(:id, :name).order(:id) # end # end CONTENT end end end } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-rails-0.2.1 | spec/lib/generators/relation_generator_spec.rb |
rom-rails-0.2.0 | spec/lib/generators/relation_generator_spec.rb |