# -*- encoding : utf-8 -*-
require 'spec_helper'

describe AssetsController, :js => true do
  self.use_transactional_fixtures = false
  fixtures :users, :accounts, :preferences
  set_fixture_class  :accounts => Account::Base

  include_context "太郎 logged in"

  let(:target_date) {Date.today >> 1}
  before do
    Deal::Base.destroy_all
    click_link '家計簿'
    click_link '資産表'
  end

  describe "カレンダー（翌月）のクリック" do
    before do
      click_link("#{target_date.month}月")
    end
    it do
      page.should have_content("#{target_date.year}年#{target_date.month}月末日の資産表")
    end
  end

end
# -*- encoding : utf-8 -*-
require 'spec_helper'

describe AssetsController, :js => true do
  self.use_transactional_fixtures = false
  fixtures :users, :accounts, :preferences
  set_fixture_class  :accounts => Account::Base

  include_context "太郎 logged in"

  let(:target_date) {Date.today >> 1}
  before do
    Deal::Base.destroy_all
    click_link '家計簿'
    click_link '資産表'
  end

  describe "カレンダー（翌月）のクリック" do
    before do
      click_link("#{target_date.month}月")
    end
    it do
      page.should have_content("#{target_date.year}年#{target_date.month}月末日の資産表")
    end
  end

  self.use_transactional_fixtures = true
end
Add test code for Travis-CI.
Add test code for Travis-CI.
