Sha256: cd98749ac25539e76d1f1cf95015224ad70e1ad1b8eb7c99a9540c9a3b7a1ece
Contents?: true
Size: 675 Bytes
Versions: 8
Compression:
Stored size: 675 Bytes
Contents
require 'fakefs/spec_helpers' require 'spec_helper' require 'meetupinator/input_file_reader' describe Meetupinator::InputFileReader do include FakeFS::SpecHelpers::All let(:input_file_dir) { '/tmp/input/file/location' } let(:file_name) { input_file_dir + '/input_file.txt' } let(:group_names) { %w(some_group another_group more_groups) } before do # need to make dir for fakefs FileUtils.mkdir_p(input_file_dir) File.open(file_name, 'wb') do |file| group_names.each { |items| file << items + "\n" } end end describe '#group_names' do it { expect(Meetupinator::InputFileReader.group_names(file_name)).to eq(group_names) } end end
Version data entries
8 entries across 8 versions & 1 rubygems