Skip to content

Commit

Permalink
added venues controller
Browse files Browse the repository at this point in the history
  • Loading branch information
diana-pavel committed Sep 17, 2019
1 parent b49aa74 commit 703ad36
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/controllers/venues_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class VenuesController < ApplicationController
def index
end

def show
end

def update
end
end
2 changes: 2 additions & 0 deletions app/views/venues/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Venues#index</h1>
<p>Find me in app/views/venues/index.html.erb</p>
2 changes: 2 additions & 0 deletions app/views/venues/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Venues#show</h1>
<p>Find me in app/views/venues/show.html.erb</p>
2 changes: 2 additions & 0 deletions app/views/venues/update.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Venues#update</h1>
<p>Find me in app/views/venues/update.html.erb</p>
3 changes: 3 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Rails.application.routes.draw do
get 'venues/index'
get 'venues/show'
get 'venues/update'
get 'venue/index'
get 'venue/show'
get 'venue/update'
Expand Down
19 changes: 19 additions & 0 deletions test/controllers/venues_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require 'test_helper'

class VenuesControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get venues_index_url
assert_response :success
end

test "should get show" do
get venues_show_url
assert_response :success
end

test "should get update" do
get venues_update_url
assert_response :success
end

end

0 comments on commit 703ad36

Please sign in to comment.