Sha256: 95f6a4cb2f60395bfd908da5e42afd596b6e64be15481725352b6fbd635febfc

Contents?: true

Size: 732 Bytes

Versions: 17

Compression:

Stored size: 732 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe RevisionParser do 
  before do 
    @story = Fabricate(:story_with_revisions)
    @parser = @story.iteration.project.create_revision_parser(:name => "live parser")
  end
  
  it "should calculate sized_on" do 
     @parser.sized_on(@story.revisions).to_s.should == 4.days.ago.to_s
  end

  it "should calculate prioritized_on" do 
    @parser.prioritized_on(@story.revisions).to_s.should == 3.days.ago.to_s
  end

  it "should calculate started_on" do 
    @parser.started_on(@story.revisions).to_s.should == 2.days.ago.to_s
  end

  it "should calculate completed_on" do
    @parser.completed_on(@story.revisions).to_s.should == 1.days.ago.to_s
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rallytastic-1.4.9 spec/revision_parser_spec.rb
rallytastic-1.4.8 spec/revision_parser_spec.rb
rallytastic-1.4.7 spec/revision_parser_spec.rb
rallytastic-1.4.6 spec/revision_parser_spec.rb
rallytastic-1.4.5 spec/revision_parser_spec.rb
rallytastic-1.4.4 spec/revision_parser_spec.rb
rallytastic-1.4.0 spec/revision_parser_spec.rb
rallytastic-1.3.0 spec/revision_parser_spec.rb
rallytastic-1.2.8 spec/revision_parser_spec.rb
rallytastic-1.2.7 spec/revision_parser_spec.rb
rallytastic-1.2.6 spec/revision_parser_spec.rb
rallytastic-1.2.5 spec/revision_parser_spec.rb
rallytastic-1.2.4 spec/revision_parser_spec.rb
rallytastic-1.2.3 spec/revision_parser_spec.rb
rallytastic-1.2.2 spec/revision_parser_spec.rb
rallytastic-1.2.1 spec/revision_parser_spec.rb
rallytastic-1.2.0 spec/revision_parser_spec.rb