Sha256: 9723358170fc2f955898877e2b33d875851a2298db5fcfbd2ad945dc2b0f5382

Contents?: true

Size: 472 Bytes

Versions: 8

Compression:

Stored size: 472 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")

describe "Generating a report" do
	it "YAML file should exist" do
		data = require 'data/data1.rb'
		lambda {JunoReport::generate data, report: File.expand_path('spec/data/rule1')}.should_not raise_error Errno::ENOENT
	end

	it "Invalid YAML file should crash" do
		data = require 'data/data1.rb'
		lambda {JunoReport::generate data, report: 'fake-rule'}.should raise_error Errno::ENOENT
	end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
juno-report-0.1.6 spec/default_spec.rb
juno-report-0.1.6 spec/rules_spec.rb
juno-report-0.1.2 spec/default_spec.rb
juno-report-0.1.2 spec/rules_spec.rb
juno-report-0.1.1 spec/default_spec.rb
juno-report-0.1.1 spec/rules_spec.rb
juno-report-0.0.9 spec/default_spec.rb
juno-report-0.0.9 spec/rules_spec.rb