wblog/spec/controllers/archives_controller_spec.rb

12 lines
197 B
Ruby
Raw Normal View History

require 'rails_helper'
2014-03-30 08:16:38 +08:00
RSpec.describe ArchivesController, type: :controller do
2014-03-30 08:16:38 +08:00
2016-04-25 12:27:32 +08:00
it "get index" do
create_list(:post_list, 3)
get :index
expect(response.status).to eq(200)
2014-03-30 08:16:38 +08:00
end
end