Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
spec/ddl/DDL_element_spec.rb | 29 | 24 | 13.79%
|
12.50%
|
Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.
1 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb') |
2 include ACN::DDL |
3 |
4 describe "DDL Element" do |
5 before(:each) do |
6 @ddl = DDL.new() |
7 @module = DDLModule.new(@ddl) |
8 @element = DDLElement.new(@module) |
9 end |
10 |
11 it "should have a uuid" do |
12 @element.should respond_to(:uuid) |
13 end |
14 |
15 it "should set the uuid" do |
16 UUID_1 = UUID.generate |
17 @module.uuid_names = {} |
18 @element = DDLElement.new(@module, :uuid => UUID_1) |
19 @element.uuid.should == UUID_1 |
20 end |
21 |
22 it "should set the uuid from the owning module's uuid_names" do |
23 UUID_1 = UUID.generate |
24 @module.uuid_names = {:foo => UUID_1} |
25 @element = DDLElement.new(@module, :uuid => 'foo') |
26 @element.uuid.should == UUID_1 |
27 end |
28 |
29 end |
Generated on 2010-03-16 15:14:06 +1000 with rcov 0.9.2.1