Skip to content

Commit

Permalink
add spec for nested destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Leif Gensert committed Jan 15, 2014
1 parent 2c0b57c commit 6dc3278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/morfo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class InvalidImdbRatingMorfer < Morfo::Base
context 'nested destination' do
subject do
class WrapperMorfer < Morfo::Base
#field(:tv_show, :title).from(:title)
field(:tv_show, :title).from(:title)
field(:tv_show, :channel).from(:channel).transformed {|v| "Channel: #{v}"}
end
WrapperMorfer
Expand All @@ -144,7 +144,7 @@ class WrapperMorfer < Morfo::Base
expected_output = input.map{|v|
{
tv_show: {
#title: v[:title],
title: v[:title],
channel: "Channel: #{v[:channel]}",
}
}
Expand Down

0 comments on commit 6dc3278

Please sign in to comment.