Sha256: ffb00730ecb152c14ba36a3a1c2dc967c7a1741bef35383b9554378f2c9128c9
Contents?: true
Size: 411 Bytes
Versions: 4
Compression:
Stored size: 411 Bytes
Contents
require 'spec_helper' describe ModelCleaner do before do create_user_rb end after do remove_user_rb end it 'cleans a ruby model' do ModelCleaner.clean(user_rb_path) expect(user_rb_file).to eq user_cleaned_file end it 'silently fail if the file does not exist' do expect{ ModelCleaner.clean('~/does_not_exist_file_123412341234.rb') }.not_to raise_error end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
columns-0.2.0 | spec/model_cleaner_spec.rb |
columns-0.1.1 | spec/model_cleaner_spec.rb |
columns-0.1.0 | spec/model_cleaner_spec.rb |
columns-0.0.1 | spec/model_cleaner_spec.rb |