Sha256: 57b6e3014b1d83e3a99223002a10f8d997a1ed5c54abfb1288ee95443dea453d

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

feature "Unit Test Code Generation" do

  scenario "Generate example via API" do
    require 'uncool/app'
    app = Uncool::App.new(:namespaces=>"Example")
    out = app.generate(['test/fixtures/example_run.rb'])
    out.assert =~ /^TestCase\ Example/
  end

  scenario "Generate example via command-line" do
    out = `ruby -Ilib -- ./bin/uncool-ruby -g -n Example test/fixtures/example_run.rb`
    out.assert =~ /^TestCase\ Example/
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uncool-1.0.1 test/features/generate_feature.rb
uncool-1.0.0 test/features/generate_feature.rb