Sha256: 92191ebdf177dd563cd9b8e0de32a41b0c1695f71e5d4aa0641d20b89b57ea85

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

FancySpec describe: "ARGV & predefined values" with: {
  it: "should have ARGV correctly defined" when: {
    ARGV empty? should_not == true
  }

  it: "should have a __FILE__ variable defined" when: {
    __FILE__ should_not == nil
    __FILE__ should =~ /\/argv.fy$/
  }

  it: "should have the __FILE__ value be an element in ARGV" when: {
    ARGV any?: |a| { File basename(a) == (File basename(__FILE__)) } . should == true
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fancy-0.3.3 tests/argv.fy