Commits on Aug 11, 2016
  1. Merge branch 'minitest'

    Fixes #32. :-)
    committed Aug 11, 2016
  2. Only run smoke and CI tests with Ruby 2.2 and 2.3

    Ruby 2.0 is no longer maintained. Ruby 2.1 is only updated with security
    patches, and will reach end of life soon.
    committed Aug 10, 2016
  3. Run 'rake test' in smoke tests

    committed Aug 10, 2016
  4. Remove support for running RSpec tests

    This is a landmark day in the life of Nesta.
    Unrelated... I'm on a plane right now.
    committed Jul 31, 2016
  5. Port command tests to minitest

    Some of these tests run `git` for real, whereas the RSpec tests used to
    set expectations on how Nesta executed the `git` command.
    As a result, we need to configure git on Travis to allow the tests to
    pass in the CI environment.
    committed Dec 1, 2015
  6. Port tests for default HTML output to minitest

    These tests are checking for the presence of tags specified in the
    default theme, so could easily break when the theme is updated.
    On the upside, at least they're all in one place...
    committed Nov 19, 2015
  7. Port model tests to minitest

    committed Nov 14, 2015
  8. Port XML sitemap tests to minitest

    committed Nov 14, 2015
  9. Port Nesta::Plugin tests to minitest

    committed Nov 14, 2015
  10. Port Nesta::Path tests to minitest

    committed Nov 14, 2015
  11. Port Nesta::Config tests to minitest

    committed Nov 14, 2015
  12. Port Atom feed tests to minitest

    committed Nov 16, 2015
Commits on Aug 6, 2016
  1. Migrate test helpers to minitest

    There are two big changes here:
    1. The approach to stubbing configuration needed to change to support the
       minitest/mock style of stubbing out methods. It requires that test
       code is executed inside a block, and only stubs the methods you
       override for the duration of the block.
       Previously we'd been stubbing methods in a `before` block. This led
       to short test cases but long `before` blocks that often contained
       data that was only relevant to one or two tests.
       This was unclear, and hard to maintain. minitest/mock is enforcing a
       clearer way of working, with less coupling between individual test
    2. ModelFactory was refactored.
       The interface for creating fixtures for pages was inconsistent, and
       required data that wasn't always relevant to a test to be passed. For
       example, create_page always required a path to be specified in the
       This commit moves us towards a more FactoryGirl-style approach, with
       a single create method that takes the type of file to create as its
       first argument.
    committed Nov 13, 2015
  2. Configure Travis CI to run minitest

    committed Nov 19, 2015
  3. Add Rake tasks to execute tests

    committed Nov 14, 2015
Commits on Aug 4, 2016
  1. Always configure git to ignore content-demo folder

    Prior to this commit the content-demo folder would only be added to the
    .git/info/excludes file if the file already existed. In most cases it
    wouldn't already be there, as it's not present by default.
    committed Dec 26, 2015
  2. Remove Ruby 1.9.3 from CI build

    committed Nov 19, 2015
Commits on Jul 31, 2016
Commits on Nov 20, 2015
  1. Simplify attachments route handler

    I've been unable to reproduce the big fixed in issue 69 [1] with the
    current version of Sinatra (1.4.5).
    While removing the conditional that checks for '..' within the path of a
    requested file, I also noticed that we didn't need a regex to define the
    committed Nov 20, 2015
Commits on Nov 14, 2015
  1. Remove Nesta::Page.menu_items

    It was deprecated when Nesta::Menu was created (back in 2010), and we
    don't need it any more.
    committed Nov 14, 2015
Commits on Jul 16, 2015
  1. Update date in LICENSE

    committed Jul 16, 2015
Commits on Jul 9, 2015
  1. Add heading_or_site_title helper method

    Some themes include links for sharing pages on social networking or
    bookmarking sites. They pass the page's heading to the third party
    services, to serve as a description of the page being shared.
    Sometimes it's possible to share a URL that isn't backed by a physical
    page with a heading (such as a 404 page). Sometimes a page won't
    actually have a heading.
    In these cases, we can fall back to using the site's title to describe
    the page. This new helper will return the appropriate text.
    committed Jul 9, 2015
Commits on Mar 26, 2015
  1. Update CHANGES for 0.11.1

    committed Mar 26, 2015
  2. Bump version to 0.11.1

    committed Mar 26, 2015
  3. Add dependency on Tilt 1.4

    Tilt 2.x will try to require the gems that implement the different
    Markdown processors (e.g. Maruku), irrespective of whether or not it's
    installed on the system. This can cause a LoadError.
    It's new behaviour, and Nesta will need updating to avoid it. Requiring
    version 1.4 works around it in the meantime.
    committed Mar 26, 2015
  4. Sort dependencies in gemspec

    committed Mar 26, 2015
Commits on Mar 16, 2015
  1. Made notes on the release process

    committed Mar 16, 2015