Sha256: a7ab30f762f78be5ce63c6e5b42d4fb8efe06fd285f2816c54382e80dd47bfd5

Contents?: true

Size: 347 Bytes

Versions: 9

Compression:

Stored size: 347 Bytes

Contents

require "spec_helper"

describe Stairs::Steps::SecretToken do
  subject { described_class.new }

  describe "#run" do
    it "generates a securerandom hex and sets to SECRET_TOKEN" do
      SecureRandom.stub hex: "imtotallysecurebro"
      subject.should_receive(:env).with("SECRET_TOKEN", "imtotallysecurebro")
      subject.run
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
stairs-0.7.1 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.7.0 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.6.1 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.6.0 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.5.1 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.5.0 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.4.2 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.4.1 spec/lib/stairs/steps/secret_token_spec.rb
stairs-0.4.0 spec/lib/stairs/steps/secret_token_spec.rb