Skip to content

Commit

Permalink
Rename common specs
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviershay committed Nov 21, 2008
1 parent 6beafd1 commit b108344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dm-serializer/spec/unit/interface_spec.rb
@@ -1,10 +1,10 @@
require 'pathname' require 'pathname'
require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper' require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'


describe 'common interface' do describe DataMapper::Serialize do
def self.each_method(message, &block) def self.each_method(message, &block)
[Harness::ToXml, Harness::ToJson].collect {|x| x.new }.each do |harness| [Harness::ToXml, Harness::ToJson].collect {|x| x.new }.each do |harness|
describe harness.method_name do describe "##{harness.method_name}" do
it(message) do it(message) do
self.class.send(:define_method, :harness) do self.class.send(:define_method, :harness) do
harness harness
Expand Down

0 comments on commit b108344

Please sign in to comment.