Sha256: 89490e6ab06b7bb7fd53daf54503d5f7e5d63018354972ac3e525b615bf0a61f

Contents?: true

Size: 741 Bytes

Versions: 6

Compression:

Stored size: 741 Bytes

Contents

require './lib/second_curtain/xcode_test_case'

describe XcodeTestCase do
  it "should generate a valid test case from a valid line" do
    line = "Test Case '-[ARAnimatedTickViewSpec initWithSelection_inits_with_selected]' started."
    test_case = XcodeTestCase.test_case_from_line(line)
    expect(test_case).not_to be_nil
    expect(test_case.name).to eq("InitWithSelection inits with selected")
  end

  it "should return nil from an invalid line" do
    line = "Something that should't work"
    test_case = XcodeTestCase.test_case_from_line(line)
    expect(test_case).to be_nil
  end

  it "should initialize properly" do
    name = "Some test"
    test_case = XcodeTestCase.new(name)
    expect(test_case.name).to eq(name)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
second_curtain-0.6.0 spec/second_shutter/xcode_test_case_spec.rb
second_curtain-0.5.0 spec/second_shutter/xcode_test_case_spec.rb
second_curtain-0.4.0 spec/second_shutter/xcode_test_case_spec.rb
second_curtain-0.3.0 spec/second_shutter/xcode_test_case_spec.rb
second_curtain-0.2.4 spec/second_shutter/xcode_test_case_spec.rb
second_curtain-0.2.3 spec/second_shutter/xcode_test_case_spec.rb