Sha256: 2eb72e2d9c56a09d9a3927e8e58d8c8ae7e115fdef96487277679bda9885ee46

Contents?: true

Size: 1.42 KB

Versions: 16

Compression:

Stored size: 1.42 KB

Contents

Given(/^some big input$/) do
  add_run_input File.open('features/fixtures/xcodebuild.log', 'r').read
end

Then(/^I should have a JSON compilation database in a custom path$/) do
  step("I should have a JSON compilation database at \"#{custom_report_path}\"")
end

Then(/^I should have a JSON compilation database at "(.*?)"$/) do |path|
  json = JSON.parse(File.open(path, 'r').read)
  json.should_not be_nil
end

Then(/^I should have JSON compilation databases in two custom paths$/) do
  step("I should have a JSON compilation database at \"#{custom_report_path}\"")
  step("I should have a JSON compilation database at \"#{other_custom_report_path}\"")
end

Then(/^the JSON compilation database should contain an entry with a command$/) do
  json_db.length.should == 1
  json_db[0]['command'].should start_with('/Applications/Xcode.app/Contents/Developer')
  json_db[0]['command'].should end_with('.o')
end

Then(/^the JSON compilation database should contain an entry with a file$/) do
  json_db[0]['file'].should == '/Users/musalj/code/OSS/ObjectiveSugar/Classes/NSMutableArray+ObjectiveSugar.m'
end

Then(/^the JSON compilation database should contain an entry with a directory$/) do
  json_db[0]['directory'].should == '/'
end

Then(/^the JSON compilation database should be complete$/) do
  entries = json_db.select { |entry| entry['command'] && entry['file'] && entry['directory'] }
  entries.length.should == JSON_DB_FIXTURE_COMMAND_COUNT
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
xcpretty-bb-0.1.12.bb14 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb13 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb12 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb11 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb10 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb9 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb8 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb7 features/steps/json_steps.rb
xcpretty-0.2.1 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb6 features/steps/json_steps.rb
xcpretty-0.2.0 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb5 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb4 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb3 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb2 features/steps/json_steps.rb
xcpretty-bb-0.1.12.bb1 features/steps/json_steps.rb