Sha256: 265f2c1949b89c16f4fefbf5a949f8013d28a71f9c1c8780547d9552a5ee8b35
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' describe 'ClassMirrorer' do before :each do @stub_parser = double('parser') end it 'mirrors given classes' do @stub_parser.stub(:translate).and_return('translated') mirrorer = VirtualKeywords::ClassMirrorer.new @stub_parser result = mirrorer.mirror [Fizzbuzzer] class_and_method = VirtualKeywords::ClassAndMethodName.new( Fizzbuzzer, 'fizzbuzz') result.keys.should include class_and_method result[class_and_method].should eql 'translated' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virtual_keywords-0.1.0 | lib/spec/class_mirrorer_spec.rb |
virtual_keywords-0.0.0 | lib/spec/class_mirrorer_spec.rb |