• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

18F / answers / 908 / 1
65%
dev: 67%

Build:
Build:
LAST BUILD BRANCH: feature/tagging_sensibly_squashed
DEFAULT BRANCH: dev
Ran 30 Oct 2014 11:44AM UTC
Files 32
Run time 15s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Oct 2014 11:33AM UTC coverage: 64.506%. First build
ruby-1.9.3, DB=postgresql

push

travis-ci

ealsheimer
Initial draft of enginized/gemified app generator

Restructures the code into an engine (/core) and suite of gems (answers
and answers-core).  This also marks the first draft of the new app
generator.  There is still a good amount of work left to restore much
of the original functionality of the rails app (e.g. admin panel,
assets pipeline, gem dependencies, tests, and chef/vagrant bits).

To test, run `./bin/answers MyAnswers` from the root of this project.

Namespace assets and remove unused items.

Correct message to reflect answers mounted at '/'

Namespace views and removed unused files.

Insert answers-core css/js into app's asset pipeline

Namespace controllers. Remove unused items.

Note this setup will use the layout within the engine, not the host app
since the controllers inherit from Answers::ApplicationController.

Mount at '/'. Include minimal gemset in generated app.

Move example and readme files to root.

Remove unused files from answers and refinery template.

Restores Devise and ActiveAdmin in Answers::Engine

Mounts active admin in generated app
Adds to migrations for Devise and ActiveAdmin

Adds questions and tags to Active Admin dashboard

Humanize names of models in ActiveAdmin dashboard

Monkey patch Engine to copy migrations to host app

This monkey patches the rails Engine to copy the engine's
(answers-core) migration files to the host app as per:
http://pivotallabs.com/leave-your-migrations-in-your-rails-engines/

Include AATO after answers to set migration order

This causes AATO to be loaded (and its migrations) after answers-core.
It also moves all dependecies after answer-core and any other answers-*
plugins.

Remove debugging statements and unused generators

Restoring API controllers and routes.

- adds the `Answers` namespace to API controllers
- adds RESTful routes in config/routes.rb to expose these controllers
- fixes a few small errors in the Tag and Tagging API controllers

Dummy app skeleton + restore rake tasks (fix answers-testing dep)

Add pry-nav and fix Devise vesion errors.

Update capybara and modify rspec pattern for engines

Tests! Add required gems. Namespace in test files.

Namespaces classes and fixes namespace issues with factories

Adds database cleaner and fixes user model specs

Adds factory_girl_rails to gemfile

Fixes Question model tests and correctly configures factory_girl

Namespaced a few more calls to Question.

Looks like @jgrevich took a pass at this file, but
a few fell through the cracks. This commit fixes them.

Namepaced more calls to Answer in AnswersController

namespace searches_spec

Update travis for new enginized layout

Drop down to bundler 1.6.2 branch since travis is lagging.

Add sqlite3 to gemfile until we get pg configured in travis

Fix remaining specs or mark pending if > 5m. Travis will be Happy!

Update authors and mark as v0.0.0

Remove path and versions in Gemfiles for answers gems

Caught a few more namespace errors in tests.

Adding answers-core to gemfile for now.

I thought this should already be loaded but after moving to remote gem
versions of answers I get an error about about core not being loaded.
Oddly this does not occur when you create an app from the remote gem.

Restore capistrano, chef, vagrant, and other misc. bits

Fixed /answers routing spec.

- used rspec `routes` method to load in engine's routes.
- no longer using 'controller#action' shorthand syntax.
- using a hash with `{controller: 'answers/$CONTROLLER'}`
    namespace.

Unpended and fixed the routes_spec.

Renamed answers_routing_spec to questions_routing_spec
and deleted the old questions_routing_spec.rb.

(this is OK since /answers routes to the questions_controller,
while we don't have /questions)

add test for about page routing

moving a test of users from pending to passing.

There are going to be no orphaned answers without questions in the app,
so there doesn't need to be a controller or a test for answers.

When the project was turned into a gem the paths on the tests broke.
I specified the controller and added the path to it. This fixes 14 tests.

Changed spec call from `have_tag` to `have_css`.

I'm not sure why `have_tag` stopped working, but
`have_css` does exactly what we need.

Fix API TaggingsController and corresponding specs

Pending specs hid some application code errors in this
controller. Unpending the specs revealed these errors
(mostly syntax-related). This commit unpends the specs
and fixes the errors.

Implemented view spec for 'answers/questions/show'

I ended up also removing instance variables from that
template and modifying the QuestionsController accord-
ingly.

Removed set_question before filter from Qs controller.

Unpended the QuestionsController spec.

Also added to the params whitelist for the
QuestionsController.

Added model spec for Answers::Answer.

Tests:

- its belong_to relationship with Answers::Question
- the presence of the searchkick class method, reindex.

Unpended the QuestionsController specs.

Fixed tests for tags_controler_spec

114 examples, 0 failures, 12 pending

- Added example tags
- fixed path on tests

Fixed the one pending test in views/questions/indes.html

Removing unnecessary code.

Adding the controller nesting was sufficient
to fix the path problem. The path did not
need to be appended.

Remaining 11 pending tests are broken due
to admin error or not implemented.

Added a tag test where there was a pending test placeholder.

114 examples, 0 failures, 10 pending

Ensures multiple tags exist for testing tags.

Can't make a test aobut tag views without adding tag data; that would requre Vagrant to be working.

Added example task to answers/tasks folder.

Added rake answers:import:oakland.

This task is inside of the answers gem, but made
accessible from within 'MyAnswers' by adding:

```
if Rails.env.development?
  files = Dir.glob("../core/lib/answers/tasks/**/*")
  files.each { |file| load(file) }
end
```

to the MyAnswers Rakefile. This is not ideal, as it depends
on having a specific project structure.

Fixed small spacing issue on homepage.

Hard-code home path to get breadcrumb links working in QuestionsController

Also, update to modern hash syntax for questions index view.

Temporarily not cache index and show actions in TagsController.

Remove bundler ~>1.6.2 dep from gemspec.

added to_s methods to the question and answer models

remove searchkick

398 of 617 relevant lines covered (64.51%)

0.96 hits per line

Source Files on job 908.1 (ruby-1.9.3, DB=postgresql)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 908
  • Travis Job 908.1
  • 18517d74 on github
  • Next Job for ruby-1.9.3, DB=postgresql on feature/remove_searchkick (#909.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc