Skip to content

Instantly share code, notes, and snippets.

@elvanja
Created March 1, 2013 22:46
Show Gist options
  • Save elvanja/5068560 to your computer and use it in GitHub Desktop.
Save elvanja/5068560 to your computer and use it in GitHub Desktop.
# file 'fruit_mapper.rb'
class FruitMapper < DataMapper::Mapper
map :id, Integer
map :name, String
map :taste, String
end
# file 'fruit_mapper_spec.rb'
require 'fruit_mapper'
describe FruitMapper do
end
# Gemfile
# ...
gem 'dm-mapper', :path => File.expand_path("../../dm-mapper", __FILE__)
# execution
bundle exec fruit_mapper_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment