Sha256: 5c1861df451d5094e0e9229b49a3614555049dbcd01e4cd29701a0d1204552cd
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
describe ToFactory::FileWriter do let(:fw) { ToFactory::FileWriter.new } let(:expected) { File.read "./spec/example_factories/#{version}_syntax/user_with_header.rb"} let(:user_file_contents) { File.read "./tmp/factories/to_factory/user.rb"} let!(:user) { create_user! } let!(:admin) { create_admin! } it do fs = ToFactory::FileSync.new representations = fs.all_representations #sanity check generation isn't broken expect(representations.keys).to eq [ToFactory::User] expect(representations.values[0][0]).to be_a ToFactory::Representation fw.write representations expect(user_file_contents).to match_sexp expected end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
to_factory-0.2.0 | spec/integration/file_writer_spec.rb |