Sha256: be178c87cf1bdaee5eae0b10ec7031b0331e390a6809f71824a175fa153b9d1c

Contents?: true

Size: 710 Bytes

Versions: 1

Compression:

Stored size: 710 Bytes

Contents

require 'spec_helper'

#set :environment, :test

describe 'FreezingEmail::Web The Web Fase' do
  include Rack::Test::Methods

  def app
    FreezingEmail::Web
  end

  it "shows index of emails" do
    FreezingEmail::Config[:store_path] = File.expand_path('../../../fixtures/', __FILE__)

    get '/'
    last_response.should be_ok
  end

  it "shows email" do
    FreezingEmail::Config[:store_path] = File.expand_path('../../../fixtures/', __FILE__)

    get '/password_resets/view'
    last_response.should be_ok
  end

  it "shows email" do
    FreezingEmail::Config[:store_path] = File.expand_path('../../../fixtures/', __FILE__)

    get '/password_resets/source'
    last_response.should be_ok
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
freezing_email-0.0.2 spec/lib/freezing_email/web_spec.rb