Sha256: c6a6de2659531db88fe46941add4cca9953cd1413b6cba57a86ba4dbaf5ad6f2
Contents?: true
Size: 1 KB
Versions: 4
Compression:
Stored size: 1 KB
Contents
require 'spec_helper' require 'vcr_setup' require 'meetupinator/cli' # I wanted to execute these tests by running the exe file # but it won't engage the vcr gem because I think it might # spawn a new process? (I think) describe 'The meetupinator command line interface' do let(:meetups) { ['MelbNodeJS', 'Ruby-On-Rails-Oceania-Melbourne'] } before do FileUtils.mkdir_p('test') Dir.chdir('test') File.open('input.txt', 'wb') do |file| meetups.each { |m| file << m + "\n" } end end after do Dir.chdir('..') FileUtils.rm_rf('test') end context 'no arguments' do end context 'meetup api and input file specified' do it 'generates the correct output.csv in the working dir' do VCR.use_cassette('functional') do Meetupinator::CLI.start(['-i', 'input.txt', '-k', '1234']) end expect(CSV.read('output.csv')).to eq(CSV.read('../spec/fixtures/functional.csv')) end end context 'meetup api and input file and output file specified' do end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
meetupinator-0.6.2 | spec/functional/cli_spec.rb |
meetupinator-0.6.1 | spec/functional/cli_spec.rb |
meetupinator-0.6 | spec/functional/cli_spec.rb |
meetupinator-0.5 | spec/functional/cli_spec.rb |