spec/fixtures/mappings/active_user_map.rb in spigot-0.2.1 vs spec/fixtures/mappings/active_user_map.rb in spigot-0.2.2

- old
+ new

@@ -7,10 +7,19 @@ login :username full_name :name end end + def self.twitter + Spigot.service(:twitter) do + resource :active_user do + login :username + full_name :name + end + end + end + def self.with_options template do login :username full_name :name options do @@ -42,37 +51,8 @@ end end end end - # def self.basic - # {'active_user' => base} - # end - - # def self.non_unique_key - # {'active_user' => base.merge('auth_token' => 'token', 'spigot' => non_unique)} - # end - - # def self.with_invalid_options - # {'active_user' => base.merge('spigot' => invalid_options)} - # end - - # private - - # def self.base - # {'full_name' => 'name', 'login' => 'username'} - # end - - # def self.options - # {'primary_key' => 'username', 'foreign_key' => 'login'} - # end - - # def self.non_unique - # {'primary_key' => 'token', 'foreign_key' => 'auth_token'} - # end - - # def self.invalid_options - # {'primary_key' => 'nosuchcolumn', 'foreign_key' => 'nosuchkey'} - # end end end end