Sha256: cff2da8ffe6d203ca7f9b239ce83359b45d81101b21a5dfe3e76d1490816aa5b

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

require "test_helper"
require "vanity/commands/report"

describe Vanity::Commands do
  before do
    metric "Coolness"
  end

  describe ".report" do
    describe "given file" do
      let(:file) { "tmp/config/redis.yml" }

      it "writes to that file" do
        new_ab_test :foobar do
          alternatives "foo", "bar"
          identify { "me" }
          metrics :coolness
        end
        experiment(:foobar).choose

        FileUtils.mkpath "tmp/config"
        Vanity::Commands.report(file)
      end

      after do
        File.unlink(File.open(file, "w"))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vanity-2.0.0.beta5 test/commands/report_test.rb
vanity-2.0.0.beta4 test/commands/report_test.rb
vanity-2.0.0.beta3 test/commands/report_test.rb