Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: tmuntan1/rails-adserver
base: 46eaa5a4e7
...
head fork: tmuntan1/rails-adserver
compare: ffae6d6bba
  • 2 commits
  • 8 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 31, 2012
@tmuntan1 need to commit before release a98d285
Commits on Apr 01, 2012
@tmuntan1 fixed readme ffae6d6
View
2  Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- rails_adserver (1.0.1)
+ rails_adserver (1.0.2)
carrierwave
coffee-script
fog
View
9 README.md
@@ -1,8 +1,9 @@
+[Demo App](http://campus-bazar-adserver-demo.herokuapp.com)
+
Setup:
```ruby
rails new Adserver_App
-rake rails_adserver:install:migrations
```
Gemfile:
@@ -11,6 +12,12 @@ Gemfile:
gem 'rails_adserver'
```
+Install the migrations
+
+```ruby
+rake rails_adserver:install:migrations
+```
+
Routes:
```ruby
View
17 test/integration/advertisements_test.rb
@@ -45,4 +45,21 @@
page.text.must_include "Text"
RailsAdserver::Advertisement.find(:last).destroy
end
+ it "should stop displaying ads after hitting max" do
+ login_as(@user, :scope => :user)
+ visit '/rails_adserver/'
+ click_link "New Advertisement"
+ fill_in 'advertisement_title', :with => "Foo Bar"
+ select(@adspace.name, :from => 'advertisement_adspace_id')
+ choose('advertisement_ad_type_ad_service')
+ fill_in "advertisement_max_impressions", :with => 1
+ fill_in 'advertisement_ad_text', :with => "Text"
+ check('advertisement_is_active')
+ click_button "Submit"
+ visit "/rails_adserver/ad/space/#{@adspace.id}"
+ page.text.must_include "Text"
+ visit "/rails_adserver/ad/space/#{@adspace.id}"
+ page.text.wont_include "Text"
+ RailsAdserver::Advertisement.find(:last).destroy
+ end
end
View
3  test/rails_app/app/helpers/application_helper.rb
@@ -1,2 +1,3 @@
module ApplicationHelper
-end
+
+end
View
2  test/rails_app/config/environments/test.rb
@@ -34,4 +34,4 @@
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
-end
+end
View
BIN  test/rails_app/db/test.sqlite3
Binary file not shown
View
2,465 test/rails_app/log/test.log
2,465 additions, 0 deletions not shown
View
1  test/rails_app/tmp/pids/server.pid
@@ -1 +0,0 @@
-11227

No commit comments for this range

Something went wrong with that request. Please try again.