From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:38560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvS3D-0001al-Ar for guix-patches@gnu.org; Sun, 17 Feb 2019 14:24:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvS37-0007xB-JU for guix-patches@gnu.org; Sun, 17 Feb 2019 14:24:29 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gvS2w-0007me-38 for guix-patches@gnu.org; Sun, 17 Feb 2019 14:24:15 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gvS2v-00078X-UH for guix-patches@gnu.org; Sun, 17 Feb 2019 14:24:13 -0500 Subject: [bug#34514] [PATCH 32/34] gnu: Add ruby-rspec-rails. Resent-Message-ID: From: Christopher Baines Date: Sun, 17 Feb 2019 19:23:12 +0000 Message-Id: <20190217192314.5666-32-mail@cbaines.net> In-Reply-To: <20190217192314.5666-1-mail@cbaines.net> References: <87sgwm44a9.fsf@cbaines.net> <20190217192314.5666-1-mail@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34514@debbugs.gnu.org * gnu/packages/ruby.scm (ruby-rspec-support): Export this variable, so that it's accessible from the (gnu packages rails) module. * gnu/packages/rails.scm (ruby-rspec-rails): New variable. --- gnu/packages/rails.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/ruby.scm | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm index 8823791405..339b68d580 100644 --- a/gnu/packages/rails.scm +++ b/gnu/packages/rails.scm @@ -174,6 +174,36 @@ an almost zero-configuration persistence layer for applications.") (home-page "https://rubyonrails.org") (license license:expat))) +(define-public ruby-rspec-rails + (package + (name "ruby-rspec-rails") + (version "3.8.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rspec-rails" version)) + (sha256 + (base32 + "1pf6n9l4sw1arlax1bdbm1znsvl8cgna2n6k6yk1bi8vz2n73ls1")))) + (build-system ruby-build-system) + (arguments + '(;; No included tests + #:tests? #f)) + (propagated-inputs + `(("ruby-actionpack" ,ruby-actionpack) + ("ruby-activesupport" ,ruby-activesupport) + ("ruby-railties" ,ruby-railties) + ("ruby-rspec-core" ,ruby-rspec-core) + ("ruby-rspec-expectations" ,ruby-rspec-expectations) + ("ruby-rspec-mocks" ,ruby-rspec-mocks) + ("ruby-rspec-support" ,ruby-rspec-support))) + (synopsis "Use RSpec to test Ruby on Rails applications") + (description + "This package provides support for using RSpec to test Ruby on Rails +applications, in pace of the default Minitest testing library.") + (home-page "https://github.com/rspec/rspec-rails") + (license license:expat))) + (define-public ruby-rails-html-sanitizer (package (name "ruby-rails-html-sanitizer") diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 385a1338e9..921c5dc8d4 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -308,7 +308,7 @@ notebook).") ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's ;; dependencies use RSpec for their test suites! To avoid these circular ;; dependencies, we disable tests for all of the RSpec-related packages. -(define ruby-rspec-support +(define-public ruby-rspec-support (package (name "ruby-rspec-support") (version "3.8.0") -- 2.20.1