Skip to content

Commit 69bd44c

Browse files
committed
A few more blog post edits, including a better, centered image.
1 parent 9544d8a commit 69bd44c

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

source/blog/2017-02-15-now-in-beta-effective-testing-with-rspec-3.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Six years ago, [The RSpec Book](https://pragprog.com/book/achbd/the-rspec-book)
77
introduced thousands of people to RSpec and helped them get the most out of the
88
framework. Since that time, RSpec has continued to evolve. RSpec 3 brought many
99
changes to help developers build and test better Ruby programs. The RSpec Book,
10-
released over 6 years ago, does not cover these changes. Readers have been
10+
now quite out of date, does not cover these changes. Readers have been
1111
asking: _is there going to be a new book?_
1212

1313
In fact, [Ian Dees](https://twitter.com/undees) and I have been hard at work on
@@ -23,14 +23,18 @@ notable additions in recent years, including composable matchers, the `--bisect`
2323
and `--only-failures` options, and the `:aggregate_failures` features. Together,
2424
we've written a book we're very proud of, and we're happy to announce it is now in beta:
2525

26-
{:.centered-image}
27-
![Effective Testing with RSpec 3](/images/rspec3_book.jpg "Effective Testing with RSpec 3: Build Ruby Apps with Confidence")
26+
<div class="rspec-3-book">
27+
<a href="https://pragprog.com/book/rspec3/effective-testing-with-rspec-3">
28+
<img alt="Cover image for Effective Testing with RSpec 3" class="cover-xlarge b-lazy book-cover" height="228" id="title-book-cover-rspec3" itemprop="image" src="/images/rspec3_book_beta.jpg" title="Cover image for Effective Testing with RSpec 3" width="190">
29+
</a>
30+
</div>
2831

2932
We've written [Effective Testing with RSpec 3: Build Ruby Apps with
3033
Confidence](https://pragprog.com/book/rspec3/effective-testing-with-rspec-3) to
3134
be _the_ definitive guide to modern RSpec. If you're new to RSpec, it's a
3235
perfect introduction. If you've used RSpec before, but haven't kept up with the
33-
recent changes, this book will get you up to speed.
36+
recent changes, this book will get you up to speed, covering new features through
37+
the soon-to-released RSpec 3.6.
3438

3539
Our book goes far beyond the RSpec documentation, walking through
3640
building a real-world JSON API and then diving deep into each part

source/images/rspec3_book_beta.jpg

20.5 KB
Loading

source/stylesheets/pages/blog.css.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,23 @@
9595
font-weight: bold;
9696
}
9797
}
98+
99+
.rspec-3-book {
100+
text-align: center;
101+
margin: 20px 0;
102+
103+
img {
104+
max-width: 100%;
105+
height: auto;
106+
border: 1px solid #aaa;
107+
-moz-box-shadow: #666 2px 2px 10px;
108+
-webkit-box-shadow: #666 2px 2px 10px;
109+
box-shadow: #666 2px 2px 10px;
110+
border: none;
111+
display: inline-block;
112+
vertical-align: middle;
113+
}
114+
}
98115
}
99116

100117
.blog_index {

0 commit comments

Comments
 (0)